Advertisement
fusionfriends

Untitled

Jul 28th, 2019
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.43 KB | None | 0 0
  1. local Player = owner
  2. local Tool = Instance.new("Tool",Player.Backpack)
  3. Tool.Name = "Chicken Bomb"
  4. Tool.TextureId = "rbxassetid://1345514915"
  5. Tool.ToolTip = "What even is this"
  6. Tool.Grip = CFrame.new(0, -0.400000006, 0.200000003, -1, 0, -8.74227766e-08, 0, 1, 0, 8.74227766e-08, 0, -1)
  7. local Chicken = Instance.new("Part",Tool)
  8. Chicken.Locked = true
  9. Chicken.Size = Vector3.new(2,2,2)
  10. Chicken.CanCollide = false
  11. Chicken.Name = "Handle"
  12. local Mesh = Instance.new("SpecialMesh",Chicken)
  13. Mesh.MeshId = "rbxassetid://438720618"
  14. Mesh.TextureId = "rbxassetid://438720622"
  15. Mesh.Scale = Vector3.new(.3,.3,.3)
  16. LastThrow = tick()-15
  17. Tool.Equipped:Connect(function()
  18. local Sound = Instance.new("Sound",Chicken)
  19. Sound.SoundId = "rbxassetid://159885083"
  20. Sound.Volume = 1
  21. Sound:Play()
  22. game.Debris:AddItem(Sound,1)
  23. end)
  24. Tool.Unequipped:Connect(function()
  25. for i,v in pairs(Chicken:GetChildren()) do
  26. if v:IsA("Sound") then
  27. v:Destroy()
  28. end
  29. end
  30. end)
  31. Tool.Activated:Connect(function()
  32. local CanThrow = math.abs(tick()-LastThrow)
  33. if CanThrow > 15 then
  34. LastThrow = tick()
  35. local Bomb = Chicken:Clone()
  36. Bomb.Parent = workspace
  37. Bomb.Name = "Bomb"
  38. Bomb.CanCollide = true
  39. local Sound = Instance.new("Sound",Bomb)
  40. Sound.SoundId = "rbxassetid://11565378"
  41. Sound.Volume = 2
  42. Sound:Play()
  43. local Attachment = Instance.new("Attachment",Bomb)
  44. local Effect = Instance.new("ParticleEmitter",Attachment)
  45. local EffectSizeKeypoints = {
  46. NumberSequenceKeypoint.new(0,0),
  47. NumberSequenceKeypoint.new(1,10)
  48. }
  49. local EffectTransparencyKeypoints = {
  50. NumberSequenceKeypoint.new(0,1),
  51. NumberSequenceKeypoint.new(0.5,0),
  52. NumberSequenceKeypoint.new(1,1)
  53. }
  54. Effect.Texture = "rbxassetid://1084975295"
  55. Effect.Size = NumberSequence.new(EffectSizeKeypoints)
  56. Effect.Transparency = NumberSequence.new(EffectTransparencyKeypoints)
  57. Effect.LightInfluence = 0
  58. Effect.LightEmission = 1
  59. Effect.Lifetime = NumberRange.new(1,1)
  60. Effect.Rate = 10
  61. Effect.RotSpeed = NumberRange.new(-50,50)
  62. Effect.Rotation = NumberRange.new(-180,180)
  63. Effect.Speed = NumberRange.new(0,0)
  64. Effect.Color = ColorSequence.new(Color3.new(255,200,0))
  65. coroutine.resume(coroutine.create(function()
  66. wait(3)
  67. local Explosion = Instance.new("Explosion",workspace)
  68. Explosion.Position = Bomb.Position
  69. Explosion.DestroyJointRadiusPercent = 0
  70. Explosion.BlastPressure = 50
  71. Explosion.BlastRadius = 50
  72. for i = 1,50 do
  73. coroutine.resume(coroutine.create(function()
  74. local Projectile = Instance.new("Part",Player.Character)
  75. Projectile.Locked = true
  76. Projectile.Size = Vector3.new(2,2,2)
  77. Projectile.Name = "Projectile"
  78. Projectile.CFrame = CFrame.new(Bomb.Position)
  79. local ProjectileMesh = Instance.new("SpecialMesh",Projectile)
  80. ProjectileMesh.MeshId = "rbxassetid://438720618"
  81. ProjectileMesh.TextureId = "rbxassetid://438720622"
  82. ProjectileMesh.Scale = Vector3.new(.3,.3,.3)
  83. local Sound = Instance.new("Sound",Projectile)
  84. Sound.Volume = 2
  85. Sound.Looped = true
  86. Sound.SoundId = "rbxassetid://1095998276"
  87. Sound:Play()
  88. game.Debris:AddItem(Projectile,15)
  89. while true do
  90. wait(.1)
  91. Projectile.Orientation = Vector3.new(0,Projectile.Orientation.Y+10,0)
  92. end
  93. end))
  94. end
  95. Bomb:Destroy()
  96. end))
  97. coroutine.resume(coroutine.create(function()
  98. Chicken.Transparency = 1
  99. wait(15)
  100. Chicken.Transparency = 0
  101. end))
  102. end
  103. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement