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
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
You just have to do server side checks.