Advertisement
Herobrinekid2

LUAWORKS

Dec 26th, 2021
1,149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.97 KB | None | 0 0
  1. for i = 1, 1000 do
  2.        
  3.         local P = Instance.new("Part")
  4.         P.Anchored = true
  5.         P.CanCollide = false
  6.         P.Transparency = 1
  7.         P.Position = game.Workspace.Baseplate.Position
  8.         P.Parent = game.Workspace.Terrain
  9.        
  10.         local EXPLOSION = Instance.new("Sound")
  11.         EXPLOSION.SoundId = "rbxassetid://4583102108"
  12.         EXPLOSION.Volume = 5
  13.         EXPLOSION.Parent = P
  14.        
  15.         local FIRE = Instance.new("Fire")
  16.         FIRE.Color = Color3.new(
  17.             math.random(255) / 255,
  18.             math.random(255) / 255,
  19.             math.random(255) / 255
  20.         )
  21.         FIRE.Size = 7
  22.         FIRE.Heat = 20
  23.         FIRE.Parent = P
  24.        
  25.         local TW = game.TweenService:Create(P, TweenInfo.new(5), {Position = P.Position + Vector3.new(Random.new():NextInteger(-100, 100), Random.new():NextInteger(100, 200), Random.new():NextInteger(-100, 100))})
  26.         TW:Play()
  27.        
  28.         SPAWN(function()
  29.             TW.Completed:Wait()
  30.             EXPLOSION:Play()
  31.            
  32.             local BALL = Instance.new("Part")
  33.             BALL.Anchored = true
  34.             BALL.CanCollide = false
  35.             BALL.Material = Enum.Material.Neon
  36.             BALL.Color = Color3.new(1, 1, 1)
  37.             BALL.Size = Vector3.new(0, 0, 0)
  38.             BALL.Shape = "Ball"
  39.             BALL.Position = P.Position
  40.             BALL.Parent = game.Workspace.Terrain
  41.            
  42.             game.TweenService:Create(BALL, TweenInfo.new(0.5), {Size = Vector3.new(20, 20, 20), Transparency = 1}):Play()
  43.             game.Debris:AddItem(BALL, 1.5)
  44.            
  45.             for i = 1, math.random(5, 20) do
  46.                 local SPARK = Instance.new("Part")
  47.                 SPARK.Size = Vector3.new(0.5, 0.5, 0.5)
  48.                 SPARK.Position = P.Position
  49.                 SPARK.CanCollide = false
  50.                 SPARK.Velocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  51.                 SPARK.Parent = game.Workspace.Terrain
  52.                
  53.                 P.Fire.Enabled = false
  54.                 game.Debris:AddItem(P, 2)
  55.                
  56.                 local FIRE = Instance.new("Fire")
  57.                 FIRE.Color = Color3.new(
  58.                     math.random(255) / 255,
  59.                     math.random(255) / 255,
  60.                     math.random(255) / 255
  61.                 )
  62.                 FIRE.Size = 7
  63.                 FIRE.Parent = SPARK
  64.                
  65.             end
  66.         end)
  67.        
  68.         task.wait(Random.new():NextNumber(0.2, 1))
  69.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement