local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:FindFirstChildOfClass("Humanoid") local seat = nil local speed = 100 -- Sprawdzanie, czy gracz siedzi local function onSeated(active, seatPart) if active then seat = seatPart else seat = nil end end humanoid.Seated:Connect(onSeated) -- Obsługa ruchu local userInputService = game:GetService("UserInputService") local runService = game:GetService("RunService") runService.RenderStepped:Connect(function() if seat and (seat:IsA("VehicleSeat") or seat:IsA("Seat")) then local moveDirection = humanoid.MoveDirection if moveDirection.Magnitude > 0 then local velocity = moveDirection.Unit * speed seat.Velocity = Vector3.new(velocity.X, seat.Velocity.Y, velocity.Z) end end end) -- Tworzenie GUI local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = player:WaitForChild("PlayerGui") local Frame = Instance.new("Frame") Frame.Size = UDim2.new(0, 300, 0, 200) Frame.Position = UDim2.new(0.5, -150, 0.5, -100) Frame.BackgroundColor3 = Color3.fromRGB(255, 0, 0) Frame.BackgroundTransparency = 0.2 Frame.BorderSizePixel = 0 Frame.Parent = ScreenGui Frame.Draggable = true Frame.Active = true Frame.ClipsDescendants = true -- Zaokrąglone rogi local UICorner = Instance.new("UICorner") UICorner.CornerRadius = UDim.new(0.1, 0) UICorner.Parent = Frame -- Animacja koloru local TweenService = game:GetService("TweenService") local function AnimateColor() local colorTween = TweenService:Create(Frame, TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, -1, true), {BackgroundColor3 = Color3.fromRGB(math.random(0,255), math.random(0,255), math.random(0,255))}) colorTween:Play() end AnimateColor() -- Pole tekstowe local TextBox = Instance.new("TextBox") TextBox.Size = UDim2.new(0.8, 0, 0.2, 0) TextBox.Position = UDim2.new(0.1, 0, 0.4, 0) TextBox.BackgroundColor3 = Color3.fromRGB(0, 0, 0) TextBox.TextColor3 = Color3.fromRGB(255, 255, 255) TextBox.Text = "Cursed Speed" TextBox.Parent = Frame local UICornerTextBox = Instance.new("UICorner") UICornerTextBox.CornerRadius = UDim.new(0.1, 0) UICornerTextBox.Parent = TextBox -- Funkcja zmiany prędkości TextBox.FocusLost:Connect(function(enterPressed) if enterPressed then local newSpeed = tonumber(TextBox.Text) if newSpeed then speed = newSpeed else TextBox.Text = "Invalid Input" end end end)