Advertisement
DeezNutsOnCarpet

Untitled

Dec 11th, 2019
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. local ModTable = nil
  2. for _,a in pairs(debug.getregistry()) do
  3. if type(a) == "function" and pcall(function() return debug.getupvalues(a) end) then
  4. for i,v in pairs(debug.getupvalues(a)) do
  5. if type(v) == "table" then
  6. for ch,e in pairs(v) do
  7. if ch == "UUID" and ModTable == nil then
  8. ModTable = v
  9. end
  10. end
  11. end
  12. end
  13. end
  14. end
  15. local ShotSize = ModTable['ShotSize']
  16. local Mag = ModTable['Magazine']
  17.  
  18. local Plr = game.Players.LocalPlayer
  19. local GunAmmo = Plr.Character:WaitForChild("Gun").Ammo
  20. local Reload = game.ReplicatedStorage.RuddevRemotes.Reload
  21. local Ammo = nil
  22. local isLoaded = true
  23. local function reload()
  24. local Ammo = GunAmmo.Value
  25. wait(0.1)
  26. Reload:FireServer()
  27. repeat wait() until GunAmmo.Value > Ammo or GunAmmo.Value >= Mag
  28. return true
  29. end
  30. local function check(v)
  31. if GunAmmo.Value > 0 and isLoaded then
  32. if v:FindFirstChildOfClass("Humanoid") == nil then else
  33. if v:FindFirstChildOfClass("Humanoid"):FindFirstChild("KillTag") ~= nil then
  34. if v:FindFirstChildOfClass("Humanoid").Health > 0 then
  35. return true
  36. end
  37. else
  38. return true
  39. end
  40. end
  41. end
  42. return false
  43. end
  44.  
  45. local Filter = {}
  46. local Mouse = Plr:GetMouse()
  47. local function FindPart(model)
  48. if model:FindFirstChild("Head") then return model.Head end
  49. if model:FindFirstChild("UpperTorso") then return model.UpperTorso end
  50. return model:FindFirstChildOfClass("Part")
  51. end
  52.  
  53. for i,v in pairs(game.Players.LocalPlayer.PlayerScripts:WaitForChild('Zombies'):GetChildren()) do
  54. if v:isA("BaseScript") then
  55. v.Disabled = true
  56. end
  57. end
  58.  
  59. while reload() do
  60. local tab = workspace.Zombies:GetChildren()
  61. if #tab > 0 then
  62. else
  63. if workspace:FindFirstChild("Giga Zombie") then
  64. tab = {workspace:FindFirstChild("Giga Zombie")}
  65. end
  66. if workspace:FindFirstChild("The Evil Dr. Zombie") then
  67. tab = {workspace:FindFirstChild("The Evil Dr. Zombie")}
  68. end
  69. if workspace:FindFirstChild("Fire Elemental Zombie") then
  70. tab = {workspace:FindFirstChild("Fire Elemental Zombie")}
  71. end
  72. if workspace:FindFirstChild("Yeti Zombie") then
  73. tab = {workspace:FindFirstChild("Yeti Zombie")}
  74. end
  75. end
  76. for i,v in pairs(tab) do
  77. local part = FindPart(v)
  78. local Accept = check(v)
  79.  
  80. if Accept == true and part ~= nil and (Plr.Character.HumanoidRootPart.Position-part.Position).Magnitude <= 100 then
  81. local cheatt,dumbb = {},{}
  82. for i=1,ShotSize do cheatt[i] = {part,i} end
  83. for i=1,ShotSize do dumbb[i] = Vector3.new(0,0,0) end
  84. repeat
  85. game.ReplicatedStorage.RuddevRemotes.Shoot:FireServer(
  86. Plr.Character.Gun.Handle.Position,
  87. dumbb,
  88. cheatt)
  89. wait()
  90. until check(v) == false
  91. end
  92. end
  93. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement