Advertisement
Danisty

Untitled

Jun 20th, 2019
55,618
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. local mt = getrawmetatable(game)
  2. setreadonly(mt, false)
  3. local ignore = {"AddCharacterLoadedEvent", "Intro"}
  4. local oldf = mt.__namecall
  5. local function ResetChar()
  6. game.Workspace:WaitForChild(game.Players.LocalPlayer.Name)
  7. game.Players.LocalPlayer.Character.Humanoid.Health = -1
  8. end
  9. mt.__namecall = function(self, ...)
  10. local args = {...}
  11. local method = getnamecallmethod(self)
  12. if method == 'Kick' or method == 'FireServer' or method == 'InvokeServer'then
  13. if method == 'Kick' then return end
  14. if self.Name == "Intro"then ResetChar()end
  15. for i,v in next, ignore do
  16. if self.Name == v then
  17. return
  18. end
  19. end
  20. end
  21. return oldf(self, ...)
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement