Advertisement
Upscalefanatic3

Tower battles scripts

Oct 18th, 2017
14,247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. --READ THIS CAREFULLY!
  2.  
  3. Give yourself credits. Only works in the hub. Not in-battle.
  4.  
  5.  
  6. --Deidara V3rm
  7. CreditsToGive = 3000
  8. workspace.Give:InvokeServer('Credits',CreditsToGive)
  9.  
  10. Only works in-battle. This upgrades all of your towers to max.
  11.  
  12.  
  13. -- Deidara V3rm
  14. local ws = workspace
  15. local plr = game:GetService('Players').LocalPlayer
  16. for i,v in pairs(ws.Towers:GetChildren()) do
  17. if v.Owner.Value == plr and v.Tower.UP1.Value < 4 then
  18. repeat
  19. workspace.HasEnough:InvokeServer('Cash',0)
  20. workspace.Spend:InvokeServer(0)
  21. workspace.UpgradeTower:InvokeServer(v.Name,0)
  22. until v.Tower.UP1.Value >= 4
  23. end
  24. end
  25.  
  26. This lets you spawn any enemy you want for free, however many times you want. You can spawn enemies before they're unlocked, too.
  27. Here's the boss names
  28.  
  29.  
  30. -- Deidara V3rm
  31. local ws = workspace
  32. local plr = game:GetService('Players').LocalPlayer
  33. local uts = 'Boss2' --Don't spell it wrong. This is the enemy that you want to send.
  34. -- The boss names are Boss1, Boss2, and Boss3
  35. local ns = 20 --How many of that enemy you want to send
  36. local cd = 0 --cooldown between each enemy spawn. not many people would want to change this.
  37. for i=1,ns do
  38. workspace.HasEnough:InvokeServer('Cash',0)
  39. workspace.Spend:InvokeServer(0)
  40. workspace.Make:InvokeServer(uts,1,cd)
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement