Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- game.ReplicatedStorage:FindFirstChild("hello"):Destroy()
- NLS([[
- explode = true
- local countdown = 7
- plr = game.Players.LocalPlayer
- char = plr.Character
- hum = char.Humanoid
- mouse = plr:GetMouse()
- local event = game.ReplicatedStorage:WaitForChild("hello")
- mouse.KeyDown:Connect(function(key)
- if key == "q" then
- event:FireServer(mouse.Target,explode,countdown,hum)
- end
- end)
- ]],owner.Character)
- local new = Instance.new("RemoteEvent",game.ReplicatedStorage)
- new.Name = "hello"
- new.OnServerEvent:Connect(function(player,mouse,explode,countdown,hum)
- local flyspeed = 100
- local torso = mouse.Parent:FindFirstChild("Head")
- local thum = torso.Parent:FindFirstChild("Humanoid")
- if thum ~= hum then
- local humrootpart = torso.Parent:FindFirstChild("HumanoidRootPart")
- local bv = Instance.new("BodyVelocity")
- bv.MaxForce = Vector3.new(1e8,1e8,1e8)
- bv.Velocity = torso.CFrame.LookVector * flyspeed
- bv.Parent = torso
- local pe = Instance.new("ParticleEmitter", torso)
- pe.Texture = "rbxassetid://1587123275"
- pe.Size = NumberSequence.new(0.5)
- pe.Lifetime = NumberRange.new(5,10)
- pe.Rate = 50
- pe.VelocitySpread = 45
- pe.Speed = NumberRange.new(10)
- local stars = Instance.new("Sound", torso)
- stars.Volume = 2
- stars.SoundId = "rbxassetid://445658142"
- stars:Play()
- if explode == true then
- local ex = Instance.new("Sound", torso)
- ex.Volume = 10
- ex.SoundId = "rbxassetid://270145703"
- wait(countdown)
- local explosion = Instance.new("Explosion", torso)
- explosion.Position = torso.Position
- ex.TimePosition = 0.4
- ex:Play()
- stars:Stop()
- torso.Parent:BreakJoints()
- pe:Destroy()
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement