Upscalefanatic3

Infection Inc Turn manual spawner into a zombie machine gun

Jan 31st, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local Delay = 1
  2.  
  3. local PName = game.Players.LocalPlayer.Name
  4. local PTYCOON
  5. local B
  6.  
  7. for i,v in pairs(game.Workspace:GetChildren()) do
  8. if v.Name:find("Tycoon") then
  9. if v.Owner.value == PName then
  10. PTYCOON = v
  11. end
  12. end
  13. end
  14.  
  15. for i,v in pairs(PTYCOON:GetChildren()) do
  16. if v.Name:find("Bought") then
  17. B = v.Name
  18. end
  19. end
  20.  
  21. local ManualSpawner = PTYCOON[B]:WaitForChild("ManualSpawner")
  22.  
  23. while wait(Delay) do
  24. ManualSpawner.Controller.Event:FireServer()
  25. end
Add Comment
Please, Sign In to add comment