Advertisement
anphu04

EXPLOSION RINGS v2

Aug 25th, 2017
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. local player = game.Players.LocalPlayer
  2. repeat
  3. wait(0.1)
  4. until player.Character
  5. local char = player.Character
  6. local torso = char:FindFirstChild("Torso")
  7.  
  8. local i = 0
  9. local angle = math.rad(0) -- the original angle is always set to 0, so the explosion rings won't tilt
  10. local speed = 0.5
  11. local distance = 30
  12.  
  13. local model = Instance.new("Model", game.Workspace)
  14. model.Name = "EXPLOSIONS!!!"
  15.  
  16.  
  17. while true do
  18. repeat
  19. wait(0.1)
  20. until player.Character and player.Character.Torso
  21. local explosion = Instance.new("Explosion")
  22. explosion.BlastRadius = 15
  23. explosion.Position = torso.Position + (CFrame.fromEulerAnglesXYZ(angle, i*speed, angle) * CFrame.new(0, 0, distance)).p
  24. explosion.Parent = model
  25. game.Debris:AddItem(explosion, 3)
  26.  
  27. local explosion2 = Instance.new("Explosion")
  28. explosion2.BlastRadius = 15
  29. explosion2.Position = torso.Position + -(CFrame.fromEulerAnglesXYZ(angle + math.rad(90), i*speed, angle + math.rad(90)) * CFrame.new(0, 0, distance)).p
  30. explosion2.Parent = model
  31. game.Debris:AddItem(explosion2, 3)
  32.  
  33. i = i + 1
  34. angle = angle + math.rad(2.5) -- this will make the ring tilt
  35. wait()
  36. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement