Advertisement
HoangThien247

kill all npc dungque quest

Jun 16th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. local Event = game:GetService("ReplicatedStorage").remotes.changeStartValue
  2. Event:FireServer()
  3. wait(0.1)
  4.  
  5. local Dungeon = workspace:WaitForChild("dungeon")
  6. local Player = game.Players.LocalPlayer
  7. Player.Character.Humanoid.WalkSpeed = 100
  8.  
  9. spawn(function()
  10. while wait(0.1) do
  11. for index, value in next, Dungeon:GetDescendants() do
  12. if (value.Name == "barrier") then
  13. value:Destroy()
  14. end
  15. if (value:FindFirstChildOfClass("Humanoid") and value ~= Player.Character) then
  16. if (value.Name ~= Boss) then
  17. value.Humanoid.Health = 0
  18. end
  19. end
  20. end
  21. end
  22. end)
  23.  
  24. local Player = game.Players.LocalPlayer
  25. Player.Character.Humanoid.WalkSpeed = 100
  26. while wait(0.1) do
  27. for index, value in next, workspace:GetDescendants() do
  28. if (value:FindFirstChildOfClass("Humanoid") and value ~= Player.Character) then
  29. value.Humanoid.Health = 0-1
  30. end
  31. end
  32. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement