Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tool = Instance.new("Tool",owner.Backpack)
- tool.Name = "dog bomb"
- part = Instance.new("Part",tool)
- part.Name = "Handle"
- part.Size = Vector3.new(1.5,1.5,1.5)
- part.Shape = "Ball"
- part.Color = Color3.fromRGB(138, 94, 0)
- part.Material = "SmoothPlastic"
- local part2 = Instance.new("Part",part)
- part2.Size = Vector3.new(0.25,1.25,0.5)
- part2.Material = "SmoothPlastic"
- part2.Color = Color3.fromRGB(138, 94, 0)
- local weld = Instance.new("Weld",part)
- weld.Part0 = part2
- weld.Part1 = part
- weld.C0 = CFrame.new(-0.65,0.25,0) * CFrame.Angles(0,0,math.rad(-15))
- local part3 = Instance.new("Part",part)
- part3.Size = Vector3.new(0.25,1.25,0.5)
- part3.Material = "SmoothPlastic"
- part3.Color = Color3.fromRGB(138, 94, 0)
- local weld2 = Instance.new("Weld",part)
- weld2.Part0 = part3
- weld2.Part1 = part
- weld2.C0 = CFrame.new(0.65,0.25,0) * CFrame.Angles(0,0,math.rad(15))
- local part4 = Instance.new("Part",part)
- part4.Size = Vector3.new(1,0.75,1.25)
- part4.Material = "SmoothPlastic"
- part4.Color = Color3.fromRGB(252, 206, 88)
- local weld3 = Instance.new("Weld",part)
- weld3.Part0 = part4
- weld3.Part1 = part
- weld3.C0 = CFrame.new(0,0.25,0.5)
- local part5 = Instance.new("Part",part)
- part5.Size = Vector3.new(1.25,0.25,0.25)
- part5.Material = "SmoothPlastic"
- local weld4 = Instance.new("Weld",part)
- weld4.Part0 = part5
- weld4.Part1 = part
- weld4.C0 = CFrame.new(0,-0.25,0.65)
- local Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = part5
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=863723693"
- Mesh2.TextureId = "http://www.roblox.com/asset/?id=863723700"
- Mesh2.Scale = Vector3.new(.24, .24, .24)
- local mesh = Instance.new("SpecialMesh", part2)
- mesh.MeshType = Enum.MeshType.Sphere
- local mesh = Instance.new("SpecialMesh", part3)
- mesh.MeshType = Enum.MeshType.Sphere
- local mesh = Instance.new("SpecialMesh", part4)
- mesh.MeshType = Enum.MeshType.Sphere
- local PartA = Instance.new("Part")
- PartA.Transparency = 1
- PartA.CanCollide = false
- local SA = Instance.new("Sound",PartA)
- SA.SoundId = "rbxasset://sounds/bass.mp3"
- SA.PlayOnRemove = true
- SA.TimePosition = 0.2
- local PartB = Instance.new("Part")
- PartB.Transparency = 1
- PartB.CanCollide = false
- local SB = Instance.new("Sound",PartB)
- SB.SoundId = "rbxassetid://7153032891"
- SB.PlayOnRemove = true
- SB.TimePosition = 0.2
- local PartC = Instance.new("Part")
- PartC.Transparency = 1
- PartC.CanCollide = false
- local SC = Instance.new("Sound",PartC)
- SC.SoundId = "rbxassetid://7511645861"
- SC.PlayOnRemove = true
- SC.TimePosition = 0.2
- PartA.Anchored = true
- PartB.Anchored = true
- PartC.Anchored = true
- local SoundCount = 0
- function PlayFX(type,pitch,vol,pos)
- if SoundCount < 30 then
- local waiter = 0
- local Part,Sound
- if type == "A" then
- Part,Sound,waiter = PartA,SA,1
- elseif type == "B" then
- Part,Sound,waiter = PartB,SB,0.4
- elseif type == "C" then
- Part,Sound,waiter = PartC,SC,0.4
- end
- Sound.PlaybackSpeed = pitch
- Sound.Volume = vol
- Part.Position = pos
- Part.Parent = script
- Part.Parent = nil
- SoundCount = SoundCount + 1
- delay(waiter/pitch,function()
- SoundCount = SoundCount - 1
- end)
- end
- end
- local on = false
- function explod(pos)
- coroutine.wrap(function()
- local pard = Instance.new("Part",script)
- pard.Anchored = true
- pard.Position = pos
- pard.CanCollide = false
- pard.Transparency = 0.75
- pard.Size = Vector3.new(25,25,25)
- pard.Shape = "Ball"
- pard.Color = Color3.fromRGB(219, 106, 0)
- pard.Material = "Neon"
- local pard2 = Instance.new("Part",script)
- pard2.Anchored = true
- pard2.Position = pos
- pard2.CanCollide = false
- pard2.Transparency = 0.75
- pard2.Size = Vector3.new(25,25,25)
- pard2.Shape = "Ball"
- pard2.Color = Color3.fromRGB(219, 73, 0)
- pard2.Material = "Neon"
- game:GetService("Debris"):AddItem(pard2,1)
- game:GetService("Debris"):AddItem(pard,1)
- coroutine.wrap(function()
- for i = 1,5 do
- PlayFX("B",1+i*0.075,2,pard.Position)
- wait(0.5 - i*0.15)
- end
- end)()
- game:GetService("Debris"):AddItem(pard,25)
- task.wait()
- local explosion = Instance.new("Explosion")
- explosion.Position = pos
- explosion.BlastRadius = 12.5
- explosion.Visible = false
- explosion.Parent = workspace
- explosion.DestroyJointRadiusPercent = 0
- local modelsHit = {}
- explosion.Hit:Connect(function(part, distance)
- local parentModel = part.Parent
- if parentModel then
- if modelsHit[parentModel] then
- return
- end
- modelsHit[parentModel] = true
- local humanoid = parentModel:FindFirstChild("Humanoid")
- if humanoid then
- local distanceFactor = distance / explosion.BlastRadius
- distanceFactor = 1 - distanceFactor
- humanoid.Health -= (250 * distanceFactor)
- end
- end
- end)
- end)()
- end
- local partf
- local sped = 0.25
- tool.Activated:Connect(function()
- if not on then
- on = true
- partf = part:Clone()
- local part6 = Instance.new("Part",partf)
- part6.Material = "SmoothPlastic"
- part6.Size = Vector3.new(2.36914285714, 2.92171428571, 1.49714285714)
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = part6
- part6.Color = partf.Color
- Mesh.MeshId = "http://www.roblox.com/asset/?id=6072643648"
- Mesh.Scale = Vector3.new(0.57142857142,0.57142857142,0.57142857142)
- local weld5 = Instance.new("Weld",partf)
- weld5.Part0 = part6
- weld5.Part1 = partf
- weld5.C0 = CFrame.new(0,1.75,0)
- local part7 = Instance.new("Part",partf)
- part7.Material = "SmoothPlastic"
- part7.Size = Vector3.new(1.5, 3, 1.5)
- local Mesh3 = Instance.new("SpecialMesh")
- Mesh3.Parent = part7
- part7.Color = partf.Color
- Mesh3.MeshId = "http://www.roblox.com/asset/?id=4390260244"
- Mesh3.TextureId = "rbxassetid://8897759435"
- Mesh3.Scale = Vector3.new(1.5,1.5,1.5)
- local weld6 = Instance.new("Weld",partf)
- weld6.Part0 = part7
- weld6.Part1 = partf
- weld6.C0 = CFrame.new(-2,2.25,0.5)
- local part8 = Instance.new("Part",partf)
- part8.Material = "SmoothPlastic"
- part8.Size = Vector3.new(1.5, 3, 1.5)
- local Mesh4 = Instance.new("SpecialMesh")
- Mesh4.Parent = part8
- part8.Color = partf.Color
- Mesh4.MeshId = "http://www.roblox.com/asset/?id=4390258469"
- Mesh4.Scale = Vector3.new(1.5,1.5,1.5)
- local weld7 = Instance.new("Weld",partf)
- weld7.Part0 = part8
- weld7.Part1 = partf
- weld7.C0 = CFrame.new(2,2.25,0.5)
- local part9 = Instance.new("Part",partf)
- part9.Material = "SmoothPlastic"
- part9.Size = Vector3.new(1.5, 3, 1.5)
- local Mesh5 = Instance.new("SpecialMesh")
- Mesh5.Parent = part9
- part9.Color = partf.Color
- Mesh5.MeshId = "http://www.roblox.com/asset/?id=4390259439"
- Mesh5.Scale = Vector3.new(1.25,1.25,1.25)
- local weld8 = Instance.new("Weld",partf)
- weld8.Part0 = part9
- weld8.Part1 = partf
- weld8.C0 = CFrame.new(0.65,4.75,0.25)
- local part10 = Instance.new("Part",partf)
- part10.Material = "SmoothPlastic"
- part10.Size = Vector3.new(1.5, 3, 1.5)
- local Mesh6 = Instance.new("SpecialMesh")
- Mesh6.Parent = part10
- part10.Color = partf.Color
- Mesh6.MeshId = "http://www.roblox.com/asset/?id=4390261070"
- Mesh6.Scale = Vector3.new(1.25,1.25,1.25)
- local weld9 = Instance.new("Weld",partf)
- weld9.Part0 = part10
- weld9.Part1 = partf
- weld9.C0 = CFrame.new(-0.65,4.75,0.25)
- Mesh4.TextureId = "rbxassetid://8897759435"
- Mesh5.TextureId = "rbxassetid://8897759435"
- Mesh6.TextureId = "rbxassetid://8897759435"
- for i,v in pairs(partf:GetDescendants()) do
- if v:IsA("Part") then
- v.CanCollide = false
- end
- end
- wait()
- partf.Parent = script
- partf.Anchored = true
- partf.CFrame = part.CFrame * CFrame.new(0,6,-2)
- wait()
- coroutine.wrap(function()
- while on do
- task.wait()
- partf.CFrame = partf.CFrame * CFrame.new(0,0,-sped)
- sped += 0.0025
- end
- end)()
- coroutine.wrap(function()
- PlayFX("C",1,1,partf.Position)
- wait(0.25)
- for i = 1,75 do
- if on then
- PlayFX("C",1+i*0.025,1,partf.Position)
- if i == 75 then
- on = false
- partf.Anchored = false
- sped = 0.25
- partf.Touched:Wait()
- explod(partf.Position)
- partf:Destroy()
- end
- wait(0.35 - i*0.015)
- end
- end
- end)()
- elseif on then
- on = false
- partf.Anchored = false
- sped = 0.25
- partf.Touched:Wait()
- explod(partf.Position)
- partf:Destroy()
- end
- end)
Add Comment
Please, Sign In to add comment