Advertisement
Landon_Exploits

Pocket man

Jul 29th, 2019
1,174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. -- // Sub to Landon Exploits // --
  2. -- // Sub to Landon Exploits // --
  3. -- // Sub to Landon Exploits // --
  4. local getrawmetatable = getrawmetatable or debug.getmetatable
  5. local make_writeable = make_writeable or setreadonly or changereadonly or change_writeable
  6. make_writeable(getrawmetatable(game), false)
  7. local backup = getrawmetatable(game).__namecall
  8.  
  9. local Zombies={}
  10.  
  11. _G.WeaponKey = nil
  12.  
  13. getrawmetatable(game).__namecall = function(self, ...)
  14. local packed = {...}
  15. if not _G.WeaponKey then
  16. if packed[#packed] == 'FireServer' then
  17. if self.Name == 'Damage' then
  18. _G.WeaponKey = packed[2]
  19. warn('Key acquired.')
  20. return backup(self, ...)
  21. end
  22. end
  23. end
  24. return backup(self, ...)
  25. end
  26.  
  27. local KILLALL = function()
  28. for k,v in next, workspace.Baddies:GetChildren()do
  29. if v.Name == 'Zombie' then
  30. table.insert(Zombies, v)
  31. end
  32. end
  33.  
  34. table.foreach(Zombies, function(k,v)
  35. if not _G.WeaponKey then
  36. return
  37. end
  38. local status, ret = xpcall(function()
  39. return v.Humanoid.Damage
  40. end, function(err) warn('Remote not found.') end)
  41. if status then
  42. --repeat wait()
  43. ret:FireServer(
  44. {
  45. ["BodyPart"] = v['HeadBox'],
  46. ["GibPower"] = 100,
  47. ["Damage"] = v.Humanoid.MaxHealth,
  48.  
  49. },_G.WeaponKey)
  50. --until v.Humanoid.Health <= 0
  51. end
  52. end)
  53. end
  54.  
  55. game:GetService('UserInputService').InputBegan:Connect(function(key)
  56. if key.KeyCode == Enum.KeyCode.E then
  57. if _G.WeaponKey then
  58. KILLALL()
  59. else
  60. print('No key')
  61. end
  62. end
  63. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement