Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- // Ensure is Da Hood (put in autoexec)
- if (game.PlaceId ~= 2788229376) then
- return
- end
- -- // Services
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- -- // Vars
- local tablefind = table.find
- local MainEvent = ReplicatedStorage.MainEvent
- -- // Configuration
- local Flags = {
- "CHECKER_1",
- "TeleportDetect",
- "OneMoreTime"
- }
- -- // __namecall hook
- local __namecall
- __namecall = hookmetamethod(game, "__namecall", function(...)
- -- // Vars
- local args = {...}
- local self = args[1]
- local method = getnamecallmethod()
- -- // See if the game is trying to alert the server
- if (method == "FireServer" and self == MainEvent and tablefind(Flags, args[2])) then
- return
- end
- -- // Anti Crash
- if (not checkcaller() and getfenv(2).crash) then
- -- // Set the crash function (hooking can cause stutters)
- local fenv = getfenv(2)
- fenv.crash = function() end
- setfenv(2, fenv)
- end
- -- //
- return __namecall(...)
- end)
- -- // __newindex hook (stops game from setting ws/jp)
- local __newindex
- __newindex = hookmetamethod(game, "__newindex", function(t, k, v)
- -- // Make sure it's trying to set our humanoid's ws/jp
- if (not checkcaller() and t:IsA("Humanoid") and (k == "WalkSpeed" or k == "JumpPower")) then
- -- // Disallow the set
- return
- end
- -- //
- return __newindex(t, k, v)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement