local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local RunService = game:GetService("RunService") local autoDrive = true local screenGui = Instance.new("ScreenGui") screenGui.Name = "CartToggleGui" screenGui.Parent = player:WaitForChild("PlayerGui") screenGui.ResetOnSpawn = false local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 100, 0, 50) toggleButton.Position = UDim2.new(0.5, -50, 0.1, 0) toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) toggleButton.Text = "Auto-Drive: ON" toggleButton.TextColor3 = Color3.new(1, 1, 1) toggleButton.Parent = screenGui toggleButton.MouseButton1Click:Connect(function() autoDrive = not autoDrive if autoDrive then toggleButton.Text = "Auto-Drive: ON" toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else toggleButton.Text = "Auto-Drive: OFF" toggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0) end end) RunService.Heartbeat:Connect(function() if not autoDrive then return end local humanoid = character:FindFirstChild("Humanoid") if humanoid and humanoid.SeatPart and humanoid.SeatPart:IsA("VehicleSeat") then humanoid.SeatPart.ThrottleFloat = 1 end end)