local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local infJump = false local gui = Instance.new("ScreenGui") gui.ResetOnSpawn = false gui.Parent = player:WaitForChild("PlayerGui") local frame = Instance.new("Frame") frame.Size = UDim2.new(0, 260, 0, 140) frame.Position = UDim2.new(0.05, 0, 0.5, 0) frame.BackgroundColor3 = Color3.fromRGB(30, 30, 30) frame.Parent = gui local corner = Instance.new("UICorner") corner.CornerRadius = UDim.new(0, 16) corner.Parent = frame local topBar = Instance.new("Frame") topBar.Size = UDim2.new(1, 0, 0, 40) topBar.BackgroundColor3 = Color3.fromRGB(45, 45, 45) topBar.Parent = frame local topCorner = Instance.new("UICorner") topCorner.CornerRadius = UDim.new(0, 16) topCorner.Parent = topBar local title = Instance.new("TextLabel") title.Size = UDim2.new(1, -10, 1, 0) title.Position = UDim2.new(0, 10, 0, 0) title.BackgroundTransparency = 1 title.Text = "INFINITE JUMP TOGGLE" title.TextColor3 = Color3.fromRGB(255, 255, 255) title.Font = Enum.Font.GothamBold title.TextSize = 14 title.TextXAlignment = Enum.TextXAlignment.Left title.Parent = topBar local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0.8, 0, 0, 50) toggleButton.Position = UDim2.new(0.1, 0, 0.55, 0) toggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0) toggleButton.Text = "OFF" toggleButton.TextColor3 = Color3.fromRGB(255, 255, 255) toggleButton.Font = Enum.Font.GothamBold toggleButton.TextSize = 20 toggleButton.Parent = frame local buttonCorner = Instance.new("UICorner") buttonCorner.CornerRadius = UDim.new(0, 12) buttonCorner.Parent = toggleButton toggleButton.MouseButton1Click:Connect(function() infJump = not infJump if infJump then toggleButton.Text = "ON" toggleButton.BackgroundColor3 = Color3.fromRGB(0, 170, 0) else toggleButton.Text = "OFF" toggleButton.BackgroundColor3 = Color3.fromRGB(170, 0, 0) end end) UserInputService.JumpRequest:Connect(function() if infJump then local character = player.Character if character then local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end end end) local dragging = false local dragStart local startPos local function update(input) local delta = input.Position - dragStart frame.Position = UDim2.new( startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y ) end topBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = frame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) topBar.InputChanged:Connect(function(input) if dragging and ( input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch ) then update(input) end end)