Advertisement
_Thanh_Thy_Cute_

Zombie Defense Tycoon AUTO KILL ZOMBIES

Jul 26th, 2021
1,665
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. --[[ Variables ]]
  2. local WS = game:GetService("Workspace")
  3. local RS = game:GetService("ReplicatedStorage")
  4. local Client = RS:WaitForChild("CIient")
  5. local Zombies = WS:WaitForChild("Zombies")
  6.  
  7.  
  8. function Kill(v)
  9. spawn(function()
  10. if v:FindFirstChild("Humanoid") then
  11. repeat wait()
  12. Client:FireServer("FireShot", "Golden Gun",v:WaitForChild("Head"),0,0,0)
  13. until v.Parent == nil
  14. end
  15. end)
  16. end
  17.  
  18. Zombies.ChildAdded:Connect(function(v)
  19. Kill(v)
  20. end)
  21.  
  22. for _,v in pairs (Zombies:GetChildren()) do
  23. Kill(v)
  24. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement