Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I patch infinite jump?

Asked by
RiotGUI 15
5 years ago
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

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 Vulkarin 581 — 5y
0
You just have to do server side checks. User#5423 17 — 5y

Answer this question