local InfiniteJumpEnabled = true
game:GetService("UserInputService").JumpRequest:connect(function()
    if InfiniteJumpEnabled then
        game:GetService"Players".LocalPlayer.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
    end
end)

Exploiters use this to infinite jump is there's a way to patch it?

I'm working on an Anti-Cheat

2 comments

0

You would probably want a server-script listening to Humanoid.StateChanged, definetly not a localscript as exploiters could just delete it https://developer.roblox.com/api-reference/event/Humanoid/StateChanged

0

You just have to do server side checks.