Advertisement
iiJosephCats205

TOAD SQUEEL [FE]

Dec 14th, 2019
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.66 KB | None | 0 0
  1. game.ReplicatedStorage:FindFirstChild("hello"):Destroy()
  2. NLS([[
  3.     explode = true
  4.     local countdown = 7
  5.     plr = game.Players.LocalPlayer
  6.     char = plr.Character
  7.     hum = char.Humanoid
  8.     mouse = plr:GetMouse()
  9.     local event = game.ReplicatedStorage:WaitForChild("hello")
  10.     mouse.KeyDown:Connect(function(key)
  11.         if key == "q" then
  12.             event:FireServer(mouse.Target,explode,countdown,hum)
  13.         end
  14.     end)
  15. ]],owner.Character)
  16. local new = Instance.new("RemoteEvent",game.ReplicatedStorage)
  17. new.Name = "hello"
  18. new.OnServerEvent:Connect(function(player,mouse,explode,countdown,hum)
  19.     local flyspeed = 100
  20.     local torso = mouse.Parent:FindFirstChild("Head")
  21.     local thum = torso.Parent:FindFirstChild("Humanoid")
  22.     if thum ~= hum then
  23.         local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
  24.         local bv = Instance.new("BodyVelocity")
  25.         bv.MaxForce = Vector3.new(1e8,1e8,1e8)
  26.         bv.Velocity = torso.CFrame.LookVector * flyspeed
  27.         bv.Parent = torso
  28.         local pe = Instance.new("ParticleEmitter", torso)
  29.         pe.Texture = "rbxassetid://1587123275"
  30.         pe.Size = NumberSequence.new(0.5)
  31.         pe.Lifetime = NumberRange.new(5,10)
  32.         pe.Rate = 50
  33.         pe.VelocitySpread = 45
  34.         pe.Speed = NumberRange.new(10)
  35.         local stars = Instance.new("Sound", torso)
  36.         stars.Volume = 2
  37.         stars.SoundId = "rbxassetid://445658142"
  38.         stars:Play()
  39.         if explode == true then
  40.             local ex = Instance.new("Sound", torso)
  41.             ex.Volume = 10
  42.             ex.SoundId = "rbxassetid://270145703"
  43.             wait(countdown)
  44.             local explosion = Instance.new("Explosion", torso)
  45.             explosion.Position = torso.Position
  46.             ex.TimePosition = 0.4
  47.             ex:Play()
  48.             stars:Stop()
  49.             torso.Parent:BreakJoints()
  50.             pe:Destroy()
  51.         end
  52.     end
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement