Advertisement
clockwatcher00f

pepsi gun

Jul 18th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.45 KB | None | 0 0
  1. -- Requested by Water#8946
  2. local plr = game:GetService("Players").LocalPlayer
  3. local char = plr.Character
  4. local mou = plr:GetMouse()
  5. local equipped = false
  6. local hum = char:FindFirstChildOfClass("Humanoid")
  7. local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
  8. local head = char:FindFirstChild("Head")
  9. local tweenserv = game:GetService("TweenService")
  10.  
  11. local pepsi = Instance.new("Tool", plr.Backpack)
  12. pepsi.Name = "MLG PEPSI GUN!11"
  13. pepsi.CanBeDropped = false
  14. local hand = Instance.new("Part", pepsi)
  15. hand.Size = Vector3.new(1, 1, 1)
  16. hand.Transparency = 1
  17. hand.Name = "Handle"
  18. local handle = Instance.new("Part", hand)
  19. handle.Size = Vector3.new(0.3, 1, 0.4)
  20. handle.Material = "Neon"
  21. handle.BrickColor = BrickColor.new("Crimson")
  22. local handlew = Instance.new("Weld", handle)
  23. handlew.Part0 = hand
  24. handlew.Part1 = handle
  25. handlew.C1 = CFrame.new(0, 0, 0.2)
  26. local handle2 = Instance.new("Part", hand)
  27. handle2.Size = Vector3.new(0.05, 0.9, 0.3)
  28. handle2.Material = "Fabric"
  29. handle2.BrickColor = BrickColor.new("Crimson")
  30. local handle2w = Instance.new("Weld", handle)
  31. handle2w.Part0 = hand
  32. handle2w.Part1 = handle2
  33. handle2w.C1 = CFrame.new(0.15, 0, 0.2)
  34. local handle3 = Instance.new("Part", hand)
  35. handle3.Size = Vector3.new(0.05, 0.9, 0.3)
  36. handle3.Material = "Fabric"
  37. handle3.BrickColor = BrickColor.new("Crimson")
  38. local handle3w = Instance.new("Weld", handle)
  39. handle3w.Part0 = hand
  40. handle3w.Part1 = handle3
  41. handle3w.C1 = CFrame.new(-0.15, 0, 0.2)
  42. local bottom = Instance.new("Part", hand)
  43. bottom.Size = Vector3.new(0.4, 0.1, 0.5)
  44. bottom.Material = "Neon"
  45. bottom.BrickColor = BrickColor.new("Crimson")
  46. local bottomw = Instance.new("Weld", bottom)
  47. bottomw.Part0 = hand
  48. bottomw.Part1 = bottom
  49. bottomw.C1 = CFrame.new(0, 0.5, 0.2)
  50. local bot1 = Instance.new("Part", hand)
  51. bot1.Shape = "Cylinder"
  52. bot1.Size = Vector3.new(1.6, 1, 1)
  53. bot1.BrickColor = BrickColor.new("Really black")
  54. bot1.Material = "Neon"
  55. local bot1w = Instance.new("Weld", bot1)
  56. bot1w.Part0 = hand
  57. bot1w.Part1 = bot1
  58. bot1w.C1 = CFrame.new(0.8, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  59. local bot2 = Instance.new("Part", hand)
  60. bot2.Shape = "Ball"
  61. bot2.Size = Vector3.new(1, 1, 1)
  62. bot2.BrickColor = BrickColor.new("Really black")
  63. bot2.Material = "Neon"
  64. local bot2w = Instance.new("Weld", bot2)
  65. bot2w.Part0 = hand
  66. bot2w.Part1 = bot2
  67. bot2w.C1 = CFrame.new(0, -0.9, 1.5)
  68. local cap = Instance.new("Part", hand)
  69. cap.Shape = "Cylinder"
  70. cap.Size = Vector3.new(0.2, 0.3, 0.3)
  71. cap.BrickColor = BrickColor.new("Crimson")
  72. cap.Material = "Neon"
  73. local capw = Instance.new("Weld", cap)
  74. capw.Part0 = hand
  75. capw.Part1 = cap
  76. capw.C1 = CFrame.new(2, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  77. local ban = Instance.new("Part", hand)
  78. ban.Shape = "Cylinder"
  79. ban.Size = Vector3.new(0.7, 1.05, 1.05)
  80. ban.BrickColor = BrickColor.new("Really blue")
  81. ban.Material = "Neon"
  82. local banw = Instance.new("Weld", ban)
  83. banw.Part0 = hand
  84. banw.Part1 = ban
  85. banw.C1 = CFrame.new(0.8, -0.9, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0))
  86. local good = Instance.new("Decal", ban)
  87. good.Texture = "rbxassetid://358890684"
  88. good.Face = "Front"
  89.  
  90.  
  91. pepsi.Equipped:connect(function()
  92. equipped = true
  93. mou.Button1Down:connect(function()
  94. if equipped == true then
  95. clicked = true
  96.  
  97. yum = Instance.new("Part", pepsi)
  98. yum.BrickColor = BrickColor.new("Really black")
  99. yum.Material = "Neon"
  100. yum.Anchored = true
  101. yum.CanCollide = false
  102. yum.Locked = true
  103. eh = Instance.new("ParticleEmitter", yum)
  104. eh.Texture = "rbxassetid://358890684"
  105. eh.Lifetime = NumberRange.new(1)
  106. eh.Rate = 90
  107. eh.SpreadAngle = Vector2.new(360, 360)
  108. MLG = Instance.new("Sound", bot1)
  109. MLG.SoundId = "rbxassetid://525289290"
  110. MLG.Volume = 20
  111. MLG.Looped = true
  112. MLG:Play()
  113.  
  114. while clicked == true do
  115. local ray = Ray.new(cap.CFrame.p, (mou.Hit.p - cap.CFrame.p).unit * 300)
  116. local part, position = workspace:FindPartOnRay(ray, char, false, true)
  117. dis = (cap.CFrame.p - position).magnitude
  118. yum.Size = Vector3.new(0.9, 0.9, dis)
  119. yum.Transparency = 0
  120. yum.CFrame = CFrame.new(cap.CFrame.p, position) * CFrame.new(0, 0, -dis / 2)
  121. local tweeninfo = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0)
  122. local tweeninfo2 = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.Out, 1, false, 0)
  123. local partprop = {Size = Vector3.new(20, 20, 20);
  124. Transparency = 1}
  125. local partprop2 = {Size = Vector3.new(5, 5, dis);
  126. Transparency = 1}
  127. tween2 = tweenserv:Create(yum, tweeninfo2, partprop2)
  128. tween2:Play()
  129. if mou.Target ~= nil and mou.Target.Parent and mou.Target.Parent:FindFirstChildOfClass("Humanoid") then
  130. yumtor = mou.Target.Parent:FindFirstChild("Torso") or mou.Target.Parent:FindFirstChild("UpperTorso")
  131. yumhum = mou.Target.Parent:FindFirstChildOfClass("Humanoid")
  132. if yumtor ~= nil then
  133. NOOO = Instance.new("Part", mou.Target.Parent)
  134. NOOO.Shape = "Ball"
  135. NOOO.BrickColor = BrickColor.new("Really black")
  136. NOOO.Material = "Neon"
  137. NOOO.Anchored = true
  138. NOOO.CanCollide = false
  139. NOOO.Size = Vector3.new(0.1, 0.1, 0.1)
  140. NOOO.CFrame = yumtor.CFrame
  141. if not yumtor:FindFirstChild("parti1") or not yumtor:FindFirstChild("parti2") or not yumtor:FindFirstChild("parti3") or not yumtor:FindFirstChild("parti4") or not yumtor:FindFirstChild("parti5") then
  142. parti = Instance.new("ParticleEmitter", yumtor)
  143. parti.Texture = "rbxassetid://398581770"
  144. parti. EmissionDirection = "Top"
  145. parti.Rate = 100
  146. parti.Name = "parti1"
  147. parti.SpreadAngle = Vector2.new(360, 360)
  148. parti.Lifetime = NumberRange.new(2)
  149. parti2 = Instance.new("ParticleEmitter", yumtor)
  150. parti2.Texture = "rbxassetid://198328945"
  151. parti2. EmissionDirection = "Front"
  152. parti2.Rate = 100
  153. parti2.Name = "parti2"
  154. parti2.SpreadAngle = Vector2.new(360, 360)
  155. parti2.Lifetime = NumberRange.new(2)
  156. parti3 = Instance.new("ParticleEmitter", yumtor)
  157. parti3.Texture = "rbxassetid://546590803"
  158. parti3.EmissionDirection = "Back"
  159. parti3.Rate = 100
  160. parti3.Name = "parti3"
  161. parti3.SpreadAngle = Vector2.new(360, 360)
  162. parti3.Lifetime = NumberRange.new(2)
  163. parti4 = Instance.new("ParticleEmitter", yumtor)
  164. parti4.Texture = "rbxassetid://104454052"
  165. parti4.EmissionDirection = "Left"
  166. parti4.Rate = 100
  167. parti4.Name = "parti4"
  168. parti4.SpreadAngle = Vector2.new(360, 360)
  169. parti4.Lifetime = NumberRange.new(2)
  170. parti5 = Instance.new("ParticleEmitter", yumtor)
  171. parti5.Texture = "rbxassetid://895967525"
  172. parti5.EmissionDirection = "Right"
  173. parti5.Rate = 100
  174. parti5.Name = "parti5"
  175. parti5.SpreadAngle = Vector2.new(360, 360)
  176. parti5.Lifetime = NumberRange.new(2)
  177. end
  178. if yumtor:FindFirstChild("mlgagaga") then
  179. local hi2 = yumtor:FindFirstChild("mlgagaga")
  180. hi2:Play()
  181. else
  182. local hi = Instance.new("Sound", yumtor)
  183. hi.SoundId = "rbxassetid://177080835"
  184. hi.Name = "mlgagaga"
  185. hi.Volume = 10
  186. hi.Looped = true
  187. hi:Play()
  188. end
  189. tween = tweenserv:Create(NOOO, tweeninfo, partprop)
  190. tween:Play()
  191. game:GetService("Debris"):AddItem(NOOO, 1)
  192. yumhum.WalkSpeed = 1
  193. yumhum.JumpPower = 1
  194. yumhum.Health = 0
  195. mou.Target.Parent:BreakJoints()
  196. for i,v in pairs(mou.Target.Parent:GetChildren()) do
  197. if v:IsA("Part") then
  198. v.Material = "Neon"
  199. v.BrickColor = BrickColor.new("Really black")
  200. end
  201. if v:IsA("Shirt") then
  202. v:Destroy()
  203. end
  204. if v:IsA("Pants") then
  205. v:Destroy()
  206. end
  207. if v:IsA("Accessory") then
  208. v:Destroy()
  209. end
  210. end
  211. end
  212. end
  213. wait()
  214. end
  215.  
  216. end
  217. end)
  218. mou.Button1Up:connect(function()
  219. clicked = false
  220. if equipped == true then
  221. MLG:Stop()
  222. eh:Destroy()
  223. game:GetService("Debris"):AddItem(yum, 0)
  224. end
  225. end)
  226. end)
  227.  
  228. pepsi.Unequipped:connect(function()
  229. equipped = false
  230. clicked = false
  231. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement