Advertisement
IHATEMICROWAVEOVEN

to be edited

Sep 24th, 2021
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. spawn(function()
  2. while wait(WAITTIME / 2) and Model:FindFirstChild("SLP") do
  3. if Model.SLP.Value == 0 then
  4. local x = math.random(-range, range)
  5. local z = math.random(-range, range)
  6. Model.Humanoid.WalkToPoint = Vector3.new(startposition.x + x, 0, startposition.z + z)
  7. end
  8. wait(WAITTIME / 2)
  9. if not Model:FindFirstChild("SLP") then return end
  10. if Model.SLP.Value == 0 then
  11. -- FIGHTING
  12. wait(2)
  13. local canuse = false
  14. if not Special then
  15. if script:FindFirstChild("Special") then
  16. if require(script.Special)(Model, Phase) then
  17. Special = true
  18. else
  19. canuse = true
  20. end
  21. else
  22. canuse = true
  23. end
  24. else
  25. canuse = true
  26. end
  27. if canuse then
  28. for _, i in pairs(game.Players:GetPlayers()) do
  29. if DamageMod:CanDamage(Model, i) then
  30. if (i.Character.Torso.Position - Model.Torso.Position).magnitude <= 150 then
  31. local rskill = math.random(1, #script.Skills:GetChildren())
  32. require(script.Skills:GetChildren()[rskill])(Model, Phase, i.Character.Torso.Position - (Model.Torso.CFrame * CFrame.new(0,0,-7)).p)
  33. end
  34. end
  35. end
  36. end
  37. end
  38. end
  39. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement