Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bom = Instance.new("Sound")
- bom.PlayOnRemove = true
- bom.SoundId = "rbxassetid://365003340"
- function explod(pos)
- coroutine.wrap(function()
- local pard = Instance.new("Part",script)
- pard.Anchored = true
- pard.Position = pos
- pard.CanCollide = false
- pard.Transparency = 1
- pard.Size = Vector3.new(0.05,0.05,0.05)
- bom.Parent = pard
- bom.TimePosition = 0.2
- bom.Parent = nil
- local pe = Instance.new("ParticleEmitter", pard)
- pe.Color = ColorSequence.new(Color3.fromRGB(156, 98, 6))
- pe.LightEmission = 0
- pe.LightInfluence = 1
- pe.EmissionDirection = "Top"
- pe.Orientation = Enum.ParticleOrientation.VelocityParallel
- pe.Size = NumberSequence.new(0.35,0)
- pe.Texture = "rbxassetid://243132757"
- pe.Transparency = NumberSequence.new(0,1)
- pe.Lifetime = NumberRange.new(10,14)
- pe.Rate = 500
- pe.Rotation = NumberRange.new(90)
- pe.RotSpeed = NumberRange.new(0)
- pe.Speed = NumberRange.new(70)
- pe.SpreadAngle = Vector2.new(-55,55)
- pe.Drag = NumberRange.new(1)
- pe.Acceleration = Vector3.new(0,-45,0)
- coroutine.wrap(function()
- wait(0.35)
- pe.Enabled = false
- end)()
- local billboard = Instance.new("BillboardGui", pard)
- billboard.Size = UDim2.new(0.125,0,0.125,0)
- local frame = Instance.new("ImageLabel", billboard)
- frame.BackgroundTransparency = 1
- frame.ImageTransparency = 0.25
- frame.Image = "http://www.roblox.com/asset/?id=5580175775"
- frame.Size = UDim2.new(1,0,1,0)
- local tweenService = game:GetService("TweenService")
- local timeToFade = 0.25
- local object = billboard
- local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Linear)
- local goal = {}
- goal.Size = UDim2.new(50,0,50,0)
- local tween = tweenService:Create(object, tweenInfo, goal)
- local goal2 = {}
- goal2.ImageTransparency = 1
- local tween2 = tweenService:Create(frame, tweenInfo, goal2)
- tween:Play()
- tween2:Play()
- game:GetService("Debris"):AddItem(billboard,0.25)
- game:GetService("Debris"):AddItem(pard,25)
- task.wait()
- local explosion = Instance.new("Explosion")
- explosion.Position = pos
- explosion.BlastRadius = 10
- explosion.Visible = false
- explosion.Parent = workspace
- explosion.Hit:Connect(function(pa)
- if pa.Name ~= "Base" and pa ~= pard then
- pa.Anchored = false
- end
- end)
- end)()
- end
- function pipebomb(velocity,cf,hit)
- coroutine.wrap(function()
- local p = Instance.new("Part",script)
- p.Position = cf
- p.Velocity = velocity
- p.Size = Vector3.new(0.418495,0.438365,1.588055)
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = p
- Mesh.MeshId = "http://www.roblox.com/asset/?id=504967762"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=504967784"
- Mesh.Scale = Vector3.new(0.005,0.005,0.005)
- wait(0.25)
- p.Touched:Wait()
- explod(hit)
- p:Destroy()
- end)()
- end
- t = 0.5
- e = Instance.new("RemoteEvent",owner.PlayerGui)
- e.Name = "the"
- e.OnServerEvent:Connect(function(_,hit)
- local g = Vector3.new(0, -game.Workspace.Gravity, 0)
- local x0 = owner.Character.HumanoidRootPart.CFrame * Vector3.new(0, 2, -2)
- local v0 = (hit - x0 - 0.5*g*t*t)/t;
- pipebomb(v0,x0,hit)
- end)
- NLS([[
- local radius = Instance.new("Part",owner.Character)
- radius.Size = Vector3.new(20,20,20)
- radius.Material = "ForceField"
- radius.Anchored = true
- radius.CanCollide = false
- radius.Color = Color3.new(1,0,0)
- e = owner.PlayerGui:WaitForChild("the")
- mouse = owner:GetMouse()
- mouse.Button1Down:Connect(function()
- e:FireServer(mouse.Hit.Position)
- end)
- game:GetService("RunService").RenderStepped:Connect(function()
- radius.Position = mouse.Hit.Position
- end)
- ]],owner.PlayerGui)
Add Comment
Please, Sign In to add comment