Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = owner
- local Tool = Instance.new("Tool",Player.Backpack)
- Tool.Name = "Chicken Bomb"
- Tool.TextureId = "rbxassetid://1345514915"
- Tool.ToolTip = "What even is this"
- Tool.Grip = CFrame.new(0, -0.400000006, 0.200000003, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1)
- local Chicken = Instance.new("Part",Tool)
- Chicken.Locked = true
- Chicken.Size = Vector3.new(2,2,2)
- Chicken.CanCollide = false
- Chicken.Name = "Handle"
- local Mesh = Instance.new("SpecialMesh",Chicken)
- Mesh.MeshId = "rbxassetid://438720618"
- Mesh.TextureId = "rbxassetid://438720622"
- Mesh.Scale = Vector3.new(.3,.3,.3)
- LastThrow = tick()-15
- Tool.Equipped:Connect(function()
- local Sound = Instance.new("Sound",Chicken)
- Sound.SoundId = "rbxassetid://159885083"
- Sound.Volume = 1
- Sound:Play()
- game.Debris:AddItem(Sound,1)
- end)
- Tool.Unequipped:Connect(function()
- for i,v in pairs(Chicken:GetChildren()) do
- if v:IsA("Sound") then
- v:Destroy()
- end
- end
- end)
- Tool.Activated:Connect(function()
- local CanThrow = math.abs(tick()-LastThrow)
- if CanThrow > 15 then
- LastThrow = tick()
- local Bomb = Chicken:Clone()
- Bomb.Parent = workspace
- Bomb.Name = "Bomb"
- Bomb.CanCollide = true
- local Sound = Instance.new("Sound",Bomb)
- Sound.SoundId = "rbxassetid://11565378"
- Sound.Volume = 2
- Sound:Play()
- local Attachment = Instance.new("Attachment",Bomb)
- local Effect = Instance.new("ParticleEmitter",Attachment)
- local EffectSizeKeypoints = {
- NumberSequenceKeypoint.new(0,0),
- NumberSequenceKeypoint.new(1,10)
- }
- local EffectTransparencyKeypoints = {
- NumberSequenceKeypoint.new(0,1),
- NumberSequenceKeypoint.new(0.5,0),
- NumberSequenceKeypoint.new(1,1)
- }
- Effect.Texture = "rbxassetid://1084975295"
- Effect.Size = NumberSequence.new(EffectSizeKeypoints)
- Effect.Transparency = NumberSequence.new(EffectTransparencyKeypoints)
- Effect.LightInfluence = 0
- Effect.LightEmission = 1
- Effect.Lifetime = NumberRange.new(1,1)
- Effect.Rate = 10
- Effect.RotSpeed = NumberRange.new(-50,50)
- Effect.Rotation = NumberRange.new(-180,180)
- Effect.Speed = NumberRange.new(0,0)
- Effect.Color = ColorSequence.new(Color3.new(255,200,0))
- coroutine.resume(coroutine.create(function()
- wait(3)
- local Explosion = Instance.new("Explosion",workspace)
- Explosion.Position = Bomb.Position
- Explosion.DestroyJointRadiusPercent = 0
- Explosion.BlastPressure = 50
- Explosion.BlastRadius = 50
- for i = 1,50 do
- coroutine.resume(coroutine.create(function()
- local Projectile = Instance.new("Part",Player.Character)
- Projectile.Locked = true
- Projectile.Size = Vector3.new(2,2,2)
- Projectile.Name = "Projectile"
- Projectile.CFrame = CFrame.new(Bomb.Position)
- local ProjectileMesh = Instance.new("SpecialMesh",Projectile)
- ProjectileMesh.MeshId = "rbxassetid://438720618"
- ProjectileMesh.TextureId = "rbxassetid://438720622"
- ProjectileMesh.Scale = Vector3.new(.3,.3,.3)
- local Sound = Instance.new("Sound",Projectile)
- Sound.Volume = 2
- Sound.Looped = true
- Sound.SoundId = "rbxassetid://1095998276"
- Sound:Play()
- game.Debris:AddItem(Projectile,15)
- while true do
- wait(.1)
- Projectile.Orientation = Vector3.new(0,Projectile.Orientation.Y+10,0)
- end
- end))
- end
- Bomb:Destroy()
- end))
- coroutine.resume(coroutine.create(function()
- Chicken.Transparency = 1
- wait(15)
- Chicken.Transparency = 0
- end))
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement