local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local autoJumpEnabled = false local spaceHeld = false local ScreenGui = Instance.new("ScreenGui") ScreenGui.Parent = player:WaitForChild("PlayerGui") local Button = Instance.new("TextButton") Button.Size = UDim2.new(0, 150, 0, 50) Button.Position = UDim2.new(0, 20, 0, 20) Button.Text = "AutoJump: OFF" Button.BackgroundColor3 = Color3.fromRGB(170, 0, 0) Button.TextColor3 = Color3.fromRGB(255, 255, 255) Button.Parent = ScreenGui Button.MouseButton1Click:Connect(function() autoJumpEnabled = not autoJumpEnabled Button.Text = "AutoJump: ON" Button.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else Button.Text = "AutoJump: OFF" Button.BackgroundColor3 = Color3.fromRGB(170, 0, 0) end end) UserInputService.InputBegan:Connect(function(input, gpe) if gpe then return end if input.KeyCode == Enum.KeyCode.Space then spaceHeld = true end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then spaceHeld = false end end) RunService.RenderStepped:Connect(function() if autoJumpEnabled and spaceHeld then if humanoid.FloorMaterial ~= Enum.Material.Air then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end end)