Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. _G.a = true
  2. while _G.a do
  3. wait(0.5)
  4. for a,b in pairs(game.Workspace:GetChildren()) do
  5. if b:IsA("Folder") then
  6. for c,d in pairs(b:GetChildren()) do
  7. if d:FindFirstChild("enemyFolder") then
  8. for e,f in pairs(d.enemyFolder:GetChildren()) do
  9. if f:FindFirstChild("HumanoidRootPart") and f:FindFirstChild("Humanoid") then
  10. repeat
  11.  
  12. f.Humanoid.Health = 0
  13. wait()
  14. until f.Humanoid.Health < 1
  15. end
  16. end
  17. end
  18. end
  19. end
  20. end
  21. for _,m in pairs(game.workspace.dungeon.bossRoom.enemyFolder:GetDescendants()) do
  22. if string.find(m.Name,"The") then
  23. if m.Humanoid.Health < 1 then
  24. wait(2)
  25. game:GetService'TeleportService':Teleport(2414851778)
  26. end
  27. end
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement