Advertisement
Guest User

Roblox shooting stars edit xD

a guest
Feb 25th, 2018
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.19 KB | None | 0 0
  1. --[[
  2. Shooting Stars script by mr steal yo bork, idea by "Deyztro"
  3. Press on someone to transform them into a meme :)
  4. --]]
  5. print("Editet by XDavodioX.")
  6. print("Equip the tool.")
  7. print("then press on player or npc.")
  8. print("Enjoy!")
  9. print("(if you don't want them to explode you have to edit this script!)")
  10. explode = true -- if u want them to explode or not
  11. local countdown = 15 -- seconds before the explosion if u have it on
  12. plr = game.Players.LocalPlayer
  13. char = plr.Character
  14. hum = char.Humanoid
  15. tool = Instance.new("HopperBin", plr.Backpack)
  16. tool.Name = "Get out of here!"
  17. mouse = plr:GetMouse()
  18. flyspeed = 60
  19.  
  20.  
  21. tool.Selected:connect(function()
  22. mouse.Button1Down:connect(function()
  23. if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then
  24. local torso = mouse.Target.Parent:FindFirstChild("Torso")
  25. local thum = torso.Parent:FindFirstChild("Humanoid")
  26. if thum ~= hum then
  27.  
  28. local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
  29. local bv = Instance.new("BodyVelocity")
  30. bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  31. bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed)
  32. bv.Parent = torso
  33.  
  34. local pe = Instance.new("ParticleEmitter", torso)
  35. pe.Texture = "rbxassetid://32629323"
  36. pe.Size = NumberSequence.new(0.5)
  37. pe.Lifetime = NumberRange.new(5,10)
  38. pe.Rate = 50
  39. pe.VelocitySpread = 45
  40. pe.Speed = NumberRange.new(10)
  41.  
  42. local stars = Instance.new("Sound", torso)
  43. stars.Volume = 2.5
  44. stars.SoundId = "rbxassetid://1246917453"
  45. stars.TimePosition = 23.5
  46. stars:Play()
  47. if explode == true then
  48. local ex = Instance.new("Sound", torso)
  49. ex.Volume = 1
  50. ex.SoundId = "rbxassetid://141679994"
  51. ex.TimePosition = 23.5
  52. ex:Play()
  53. for i = 1,countdown do
  54. tool.Name = "Exploding in " .. countdown - i .. "."
  55. wait(1)
  56. end
  57. tool.Name = "Shoot em // by mr steal yo bork"
  58. local explosion = Instance.new("Explosion", torso)
  59. explosion.Position = torso.Position
  60. ex.TimePosition = 0.4
  61. ex:Play()
  62. stars:Stop()
  63. torso.Parent:BreakJoints()
  64. pe:Destroy()
  65. end
  66. end
  67. end
  68. end)
  69. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement