Sungmingamerpro13

Boss System v4 (STORY GAME)

Jun 3rd, 2026
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CSS 1.84 KB | None | 0 0
  1. local BossMonster = game.Workspace.boss_Monster --- Change by your BossNPC
  2. local BossHealth = BossMonster.Humanoid.Health
  3. local BossMinusHealth = 0
  4.  
  5. local function playMonsterAnimation()
  6.     local animation = Instance.new("Animation",BossMonster)
  7.     animation.AnimationId = "https://roblox.com/assets/?id=1083195517"
  8.  
  9.     local humanoid = BossMonster:FindFirstChild("Humanoid")
  10.     humanoid:LoadAnimation(animation):Play()
  11.  
  12.     wait(1)
  13.  
  14.     animation:Destroy()
  15. end
  16.  
  17. local function playMonsterAttackAnimation()
  18.     local animation = Instance.new("Animation",BossMonster)
  19.     animation.AnimationId = "https://roblox.com/assets/?id=115300646506302"
  20.  
  21.     local humanoid = BossMonster:FindFirstChild("Humanoid")
  22.     humanoid:LoadAnimation(animation):Play()
  23.  
  24.     wait(1)
  25.  
  26.     animation:Destroy()
  27. end
  28.  
  29. local function FireballChallenge()
  30.     for i=1,3 do
  31.  
  32.         playMonsterAnimation()
  33.  
  34.         playMonsterAttackAnimation()
  35.  
  36.         for i,player in pairs(game.Players:GetPlayers()) do
  37.             if player.Character then
  38.                 local fireball = game.ReplicatedStorage.Fireball:Clone()
  39.                 local target = game.ReplicatedStorage.Target:Clone()
  40.  
  41.  
  42.                 target.Parent = game.Workspace
  43.                 target.CFrame = (player.Character.HumanoidRootPart.CFrame - Vector3.new(0,3,0)) * CFrame.Angles(0,0,math.rad(90))
  44.  
  45.                 wait(0.5)
  46.  
  47.                 fireball.Parent = game.Workspace
  48.                 fireball.CFrame = target.CFrame + Vector3.new(0,60,0)
  49.  
  50.                 wait(2)
  51.  
  52.                 target:Destroy()
  53.             end
  54.         end
  55.  
  56.         wait(1)
  57.     end
  58. end
  59.  
  60. spawn(function()
  61.     while true do
  62.         wait(5)
  63.         FireballChallenge()
  64.         wait(5)
  65.         FireballChallenge()
  66.         wait(5)
  67.         FireballChallenge()
  68.         wait(5)
  69.         BossMonster:PivotTo(workspace.BossTeleports.StartTeleport.CFrame)
  70.         wait(5)
  71.         BossMonster:PivotTo(workspace.BossTeleports.EndTeleport.CFrame)
  72.         if BossHealth <= BossMinusHealth then
  73.             break
  74.         end
  75.     end
  76. end)
  77.  
  78. repeat wait(0.1) until BossHealth <= BossMinusHealth
  79.  
Advertisement
Add Comment
Please, Sign In to add comment