Advertisement
Sungmingamerpro13

BossBattle(Script)

Aug 13th, 2022 (edited)
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. local BossTeacher = workspace.BossTeacher
  2.  
  3. local function playMonsterAnimation()
  4. local animation = Instance.new("Animation",BossTeacher)
  5. animation.AnimationId = "https://roblox.com/assets/?id=5104377791"
  6.  
  7. local humanoid = BossTeacher:FindFirstChild("Humanoid")
  8. humanoid:LoadAnimation(animation):Play()
  9.  
  10. wait(1)
  11.  
  12. animation:Destroy()
  13. end
  14.  
  15. local function fireballChallenge()
  16.  
  17. for i=1,3 do
  18.  
  19. playMonsterAnimation()
  20.  
  21. for i,player in pairs(game.Players:GetPlayers()) do
  22. if player.Character then
  23. local fireball = game.ReplicatedStorage.Fireball:Clone()
  24. local target = game.ReplicatedStorage.Target:Clone()
  25.  
  26.  
  27. target.Parent = game.Workspace
  28. target.CFrame = (player.Character.HumanoidRootPart.CFrame - Vector3.new(0,3,0)) * CFrame.Angles(0,0,math.rad(90))
  29.  
  30. wait(0.5)
  31.  
  32. fireball.Parent = game.Workspace
  33. fireball.CFrame = target.CFrame + Vector3.new(0,60,0)
  34.  
  35. wait(2)
  36.  
  37. target:Destroy()
  38. end
  39. end
  40.  
  41. wait(1)
  42. end
  43. end
  44.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement