Qpwisnd

mitten.wtf

Mar 27th, 2024 (edited)
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.90 KB | None | 0 0
  1. local namecall
  2. local newindex
  3. local hook1
  4. local hook2
  5. local hook3
  6.  
  7. game:GetService("ScriptContext"):SetTimeout(0.1)
  8.  
  9. local function die(con)
  10. for i,v in pairs(getconnections(con)) do
  11. v:Disable()
  12. end
  13. end
  14.  
  15. local function CharacterAdded(Character)
  16. local Humanoid = Character:WaitForChild("Humanoid")
  17. die(Humanoid:GetPropertyChangedSignal("WalkSpeed"))
  18. die(Humanoid:GetPropertyChangedSignal("JumpPower"))
  19. die(Humanoid:GetPropertyChangedSignal("HipHeight"))
  20. end
  21.  
  22. newindex = hookmetamethod(game,"__newindex",newcclosure(function(self,prop,value)
  23. if prop == "Parent" and value == nil and getcallingscript() and tostring(getcallingscript()) == "Anticheat" then
  24. return
  25. end
  26.  
  27. return newindex(self,prop,value)
  28. end))
  29.  
  30. namecall = hookmetamethod(game,"__namecall",newcclosure(function(...)
  31. if checkcaller() then return namecall(...) end
  32.  
  33. local self,caller,method,args = ...,getcallingscript(),getnamecallmethod(),{...}; table.remove(args,1)
  34.  
  35. if method == "FireServer" then
  36. if tostring(self) == "2Event" then
  37. return
  38. end
  39. elseif method == "ClearAllChildren" then
  40. --return
  41. elseif method == "Clone" then
  42.  
  43. end
  44.  
  45. return namecall(...)
  46. end))
  47.  
  48. hook1 = hookfunction(Instance.new("Part").Destroy,function(...)
  49. if not checkcaller() then
  50. return
  51. end
  52. return hook1(...)
  53. end)
  54. hook2 = hookfunction(Instance.new("Part").ClearAllChildren,function(...)
  55. if not checkcaller() then
  56. return
  57. end
  58. return hook2(...)
  59. end)
  60. hook3 = hookfunction(Instance.new("Part").Clone,function(...)
  61. if not checkcaller() then
  62. return
  63. end
  64. return hook3(...)
  65. end)
  66.  
  67. game:GetService("Players").LocalPlayer.CharacterAdded:Connect(CharacterAdded)
  68. if game:GetService("Players").LocalPlayer.Character then
  69. CharacterAdded(game:GetService("Players").LocalPlayer.Character)
  70. end
Advertisement
Add Comment
Please, Sign In to add comment