Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mt = getrawmetatable(game)
- setreadonly(mt, false)
- local ignore = {"AddCharacterLoadedEvent", "Intro"}
- local oldf = mt.__namecall
- local function ResetChar()
- game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
- game.Players.LocalPlayer.Character.Humanoid.Health = -1
- end
- mt.__namecall = function(self, ...)
- local args = {...}
- local method = getnamecallmethod(self)
- if method == 'Kick' or method == 'FireServer' or method == 'InvokeServer'then
- if method == 'Kick' then return end
- if self.Name == "Intro"then ResetChar()end
- for i,v in next, ignore do
- if self.Name == v then
- return
- end
- end
- end
- return oldf(self, ...)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement