Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local metatable = debug.getmetatable(game)
- local readonly = setreadonly or make_writable
- local namecall = metatable.__namecall
- local newindex = metatable.__newindex
- local tableremove = table.remove
- readonly(metatable,false)
- local function getcharacter()
- game:GetService("StarterGui"):SetCore("ResetButtonCallback",true)
- local char = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait()
- return char
- end
- metatable.__namecall = newcclosure(function(self,...)
- if checkcaller() then
- return namecall(self,...)
- end
- local args = {...}
- if args[#args]:lower() == "breakjoints" or args[#args]:lower() == "setstateenabled" then
- return wait(9e9)
- end
- if getfenv(2).script.Name:lower() == "localscript" and args[#args] == "FireServer" then
- if tableremove(args) == "spd" then
- return wait(9e9)
- end
- if tableremove(args) == "jumpheiught" then
- return wait(9e9)
- end
- if tableremove(args) == "hipheight" then
- return wait(9e9)
- end
- if tableremove(args) == "bork" then
- return wait(9e9)
- end
- if tableremove(args) == "wh" then
- return wait(9e9)
- end
- end
- if getfenv(2).script.ClassName == "LocalScript" and args[#args] == "FireServer" then
- if tableremove(args) == "hey" then
- return
- end
- end
- return namecall(self,...)
- end)
- metatable.__newindex = newcclosure(function(key,val,n)
- if checkcaller() then
- return newindex(key,val,n)
- end
- if key == getcharacter():WaitForChild("Humanoid") then
- if val == "WalkSpeed" then
- return
- end
- if val == "JumpPower" then
- return
- end
- if val == "HipHeight" then
- return
- end
- if val == "Health" then
- return wait(9e9)
- end
- end
- if key == workspace and val == "Gravity" then
- return
- end
- if getfenv(2).script.Name == "LocalScript" then
- if key == getcharacter():WaitForChild("HumanoidRootPart") and val == "CFrame" or val == "Position" then
- return
- end
- if key == getcharacter():WaitForChild("Torso") and val == "CFrame" or val == "Position" then
- return
- end
- end
- return newindex(key,val,n)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement