Advertisement
anphu04

EXPLOSION RINGS!

Aug 25th, 2017
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 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 char and torso do
  18. while true do
  19. local explosion = Instance.new("Explosion")
  20. explosion.BlastRadius = 15
  21. explosion.Position = torso.Position + (CFrame.fromEulerAnglesXYZ(angle, i*speed, angle) * CFrame.new(0, 0, distance)).p
  22. explosion.Parent = model
  23. game.Debris:AddItem(explosion, 3)
  24.  
  25. local explosion2 = Instance.new("Explosion")
  26. explosion2.BlastRadius = 15
  27. explosion2.Position = torso.Position + -(CFrame.fromEulerAnglesXYZ(angle + math.rad(90), i*speed, angle + math.rad(90)) * CFrame.new(0, 0, distance)).p
  28. explosion2.Parent = model
  29. game.Debris:AddItem(explosion2, 3)
  30.  
  31. i = i + 1
  32. angle = angle + math.rad(2.5) -- this will make the ring tilt
  33. wait()
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement