local player = game.Players.LocalPlayer local userInputService = game:GetService("UserInputService") local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) local button = Instance.new("TextButton", gui) local player = game.Players.LocalPlayer local userInputService = game:GetService("UserInputService") local gui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui")) local button = Instance.new("TextButton", gui) button.Size = UDim2.new(0, 100, 0, 50) button.Position = UDim2.new(1, -110, 0, 10) button.Text = "Toggle Jump" button.BackgroundColor3 = Color3.fromRGB(255, 0, 0) local isJumping = false local jumpConnection local function onJumpRequest() if isJumping then player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Freefall) isJumping = false if jumpConnection then jumpConnection:Disconnect() jumpConnection = nil end else isJumping = true jumpConnection = player.Character.Humanoid.Jumping:Connect(function() player.Character.Humanoid.PlatformStand = true end) end end button.MouseButton1Click:Connect(onJumpRequest) userInputService.JumpRequest:Connect(onJumpRequest) button.Size = UDim2.new(0, 100, 0, 50) button.Position = UDim2.new(1, -110, 0, 10) button.Text = "Toggle Jump" button.BackgroundColor3 = Color3.fromRGB(255, 0, 0) local isJumping = false local jumpConnection local function onJumpRequest() if isJumping then player.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Freefall) isJumping = false if jumpConnection then jumpConnection:Disconnect() jumpConnection = nil end else isJumping = true jumpConnection = player.Character.Humanoid.Jumping:Connect(function() player.Character.Humanoid.PlatformStand = true end) end end button.MouseButton1Click:Connect(onJumpRequest) userInputService.JumpRequest:Connect(