Advertisement
poisonSS

Demon Tower Defense KILL ALL | POISON

Mar 11th, 2021
4,407
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. -- Variables
  2. local code = require(game.ReplicatedStorage.DataSource.EnumType).clientRemoteEvent.DamageMonster
  3. local unit = (function()
  4. for i,v in pairs(workspace.PlaceHero:GetChildren()) do
  5. if v.Name:find(game.Players.LocalPlayer.Name) and not v.Name:find("Doctor") then
  6. return v.Name
  7. end
  8. end
  9. end)()
  10.  
  11. -- Yes
  12. while true do
  13. for i,v in pairs(workspace.Monsters:GetChildren()) do
  14. game.ReplicatedStorage.RemoteEvent["RemoteEvent_Notice"]:FireServer(code, {unit,{v}})
  15. end
  16. wait()
  17. end
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement