Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer;
- local control = player.PlayerScripts.repo.controlScript;
- local states = {
- isExhausted = true,
- isInAir = true,
- isFalling = true,
- isJumping = true
- }
- for i,v in pairs(getgc()) do
- if getfenv(v).script == control and debug.getinfo(v).name == 'setCharacterMovementState' then
- hook = hookfunction(v,function(state, value,...)
- if states[state] then
- value = false;
- end
- return hook(state,value,...);
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement