Advertisement
IHATEMICROWAVEOVEN

kjkujfji

Oct 5th, 2021
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. -- top
  2. local DamageMod = require(game.ServerScriptService.Libraries.DamageService)
  3. local Rock = game.ServerStorage:WaitForChild("Items"):WaitForChild("Psystrike")
  4. local projectilecount = 10
  5. local volleycount = 6
  6.  
  7. -- attack
  8. function mod(boss,phase) -- I left in phase for developer-friendliness
  9. wait(1)
  10. for Amount = 1,volleycount do
  11. for i = 1,projectilecount do
  12. local Part = Rock:Clone()
  13. Part.Parent = boss
  14. Part.CFrame = boss.Torso.CFrame * CFrame.Angles(0 , math.rad(i*36 + Amount*11.7) , 0) * CFrame.new(0,1,0)
  15.  
  16. local bv = Instance.new("BodyVelocity", Part)
  17. bv.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  18. bv.velocity = Part.CFrame.lookVector * 70
  19. DamageMod:RegisterWeaponPart(boss , {Part} , 50)
  20. game:GetService("Debris"):AddItem(Part)
  21. boss.BTorso:FindFirstChild("Sound").Psychic:Play()
  22. end
  23. wait(0.2)
  24. end
  25. return true
  26. end
  27. return mod
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement