quan22111

Untitled

Mar 16th, 2019
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. local Boss = "Ice Elemental"
  2.  
  3. -- Assets
  4. local Dungeon = workspace:WaitForChild("dungeon")
  5. local Player = game.Players.LocalPlayer
  6. Player.Character.Humanoid.WalkSpeed = 100
  7.  
  8. spawn(function()
  9. while wait(0.2) do
  10. for index, value in next, Dungeon:GetDescendants() do
  11. if (value.Name == "barrier") then
  12. value:Destroy()
  13. end
  14. if (value:FindFirstChildOfClass("Humanoid") and value ~= Player.Character) then
  15. if (value.Name ~= Boss) then
  16. value.Humanoid.Health = 0
  17. end
  18. end
  19. end
  20. end
  21. end)
Add Comment
Please, Sign In to add comment