Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = game.Players.LocalPlayer
- repeat
- wait(0.1)
- until player.Character
- local char = player.Character
- local torso = char:FindFirstChild("Torso")
- local i = 0
- local angle = math.rad(0) -- the original angle is always set to 0, so the explosion rings won't tilt
- local speed = 0.5
- local distance = 30
- local model = Instance.new("Model", game.Workspace)
- model.Name = "EXPLOSIONS!!!"
- while true do
- repeat
- wait(0.1)
- until player.Character and player.Character.Torso
- local explosion = Instance.new("Explosion")
- explosion.BlastRadius = 15
- explosion.Position = torso.Position + (CFrame.fromEulerAnglesXYZ(angle, i*speed, angle) * CFrame.new(0, 0, distance)).p
- explosion.Parent = model
- game.Debris:AddItem(explosion, 3)
- local explosion2 = Instance.new("Explosion")
- explosion2.BlastRadius = 15
- explosion2.Position = torso.Position + -(CFrame.fromEulerAnglesXYZ(angle + math.rad(90), i*speed, angle + math.rad(90)) * CFrame.new(0, 0, distance)).p
- explosion2.Parent = model
- game.Debris:AddItem(explosion2, 3)
- i = i + 1
- angle = angle + math.rad(2.5) -- this will make the ring tilt
- wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement