Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- top
- local DamageMod = require(game.ServerScriptService.Libraries.DamageService)
- local Rock = game.ServerStorage:WaitForChild("Items"):WaitForChild("Psystrike")
- local projectilecount = 10
- local volleycount = 6
- -- attack
- function mod(boss,phase) -- I left in phase for developer-friendliness
- wait(1)
- for Amount = 1,volleycount do
- for i = 1,projectilecount do
- local Part = Rock:Clone()
- Part.Parent = boss
- Part.CFrame = boss.Torso.CFrame * CFrame.Angles(0 , math.rad(i*36 + Amount*11.7) , 0) * CFrame.new(0,1,0)
- local bv = Instance.new("BodyVelocity", Part)
- bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
- bv.velocity = Part.CFrame.lookVector * 70
- DamageMod:RegisterWeaponPart(boss , {Part} , 50)
- game:GetService("Debris"):AddItem(Part)
- boss.BTorso:FindFirstChild("Sound").Psychic:Play()
- end
- wait(0.2)
- end
- return true
- end
- return mod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement