Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- spawn(function()
- while wait(WAITTIME / 2) and Model:FindFirstChild("SLP") do
- if Model.SLP.Value == 0 then
- local x = math.random(-range, range)
- local z = math.random(-range, range)
- Model.Humanoid.WalkToPoint = Vector3.new(startposition.x + x, 0, startposition.z + z)
- end
- wait(WAITTIME / 2)
- if not Model:FindFirstChild("SLP") then return end
- if Model.SLP.Value == 0 then
- -- FIGHTING
- wait(2)
- local canuse = false
- if not Special then
- if script:FindFirstChild("Special") then
- if require(script.Special)(Model, Phase) then
- Special = true
- else
- canuse = true
- end
- else
- canuse = true
- end
- else
- canuse = true
- end
- if canuse then
- for _, i in pairs(game.Players:GetPlayers()) do
- if DamageMod:CanDamage(Model, i) then
- if (i.Character.Torso.Position - Model.Torso.Position).magnitude <= 150 then
- local rskill = math.random(1, #script.Skills:GetChildren())
- require(script.Skills:GetChildren()[rskill])(Model, Phase, i.Character.Torso.Position - (Model.Torso.CFrame * CFrame.new(0,0,-7)).p)
- end
- end
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement