Advertisement
NextFlamePB

ROBLOX Toad Shooting Stars Meme Script

May 28th, 2017
9,455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.86 KB | None | 0 0
  1. explode = false -- if u want them to explode or not
  2. local countdown = 7 -- seconds before the explosion if u have it on
  3. plr = game.Players.LocalPlayer
  4. char = plr.Character
  5. hum = char.Humanoid
  6. tool = Instance.new("HopperBin", plr.Backpack)
  7. tool.Name = "Shoot em"
  8. mouse = plr:GetMouse()
  9. flyspeed = 20
  10.  
  11.  
  12. tool.Selected:connect(function()
  13.     mouse.Button1Down:connect(function()
  14.         if tool.Active == true and mouse.Target.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent.Parent:FindFirstChild("Humanoid") or mouse.Target.Parent:FindFirstChild("Torso") then
  15.         local torso = mouse.Target.Parent:FindFirstChild("Torso")
  16.         local thum = torso.Parent:FindFirstChild("Humanoid")
  17.         if thum ~= hum then
  18.            
  19.         local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
  20.         local bv = Instance.new("BodyVelocity")
  21.         bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  22.         bv.Velocity = Vector3.new(flyspeed,flyspeed,flyspeed)
  23.         bv.Parent = torso
  24.        
  25.         local pe = Instance.new("ParticleEmitter", torso)
  26.         pe.Texture = "rbxassetid://739179761"
  27.         pe.Size = NumberSequence.new(0.5)
  28.         pe.Lifetime = NumberRange.new(5,10)
  29.         pe.Rate = 50
  30.         pe.VelocitySpread = 45
  31.         pe.Speed = NumberRange.new(10)
  32.        
  33.         local stars = Instance.new("Sound", torso)
  34.         stars.Volume = 1
  35.         stars.SoundId = "rbxassetid://597084853"
  36.         stars.TimePosition = 23.5
  37.         stars:Play()
  38.         if explode == true then
  39.         local ex = Instance.new("Sound", torso)
  40.         ex.Volume = 1
  41.         ex.SoundId = "rbxassetid://513492655"
  42.         ex.TimePosition = 23.5
  43.         ex:Play()
  44.         for i = 1,countdown do
  45.         tool.Name = "Exploding in " .. countdown - i .. "."
  46.         wait(1)
  47.         end
  48.         tool.Name = "Shoot em // by mr steal yo bork"
  49.         local explosion = Instance.new("Explosion", torso)
  50.         explosion.Position = torso.Position
  51.         ex.TimePosition = 0.4
  52.         ex:Play()
  53.         stars:Stop()
  54.         torso.Parent:BreakJoints()
  55.         pe:Destroy()
  56.         end
  57.         end
  58.         end
  59.     end)
  60. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement