Advertisement
TheUnknownDiscord

Pipe

Mar 17th, 2022 (edited)
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.88 KB | None | 0 0
  1. tool = Instance.new("Tool",owner.Backpack)
  2. tool.Grip = CFrame.new(0,-0.35,0.5)
  3. part2 = Instance.new("SpawnLocation",tool)
  4. part2.Enabled = false
  5. part2.Name = "Handle"
  6. part2.Size = Vector3.new(0.58, 1.34, 2.48)
  7. local tweenService = game:GetService("TweenService")
  8. local timeToFade = 0.0625
  9. local object = tool
  10. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  11. local goal = {}
  12. goal.Grip = CFrame.new(0,-0.75,0.75) * CFrame.Angles(math.rad(-55),0,0)
  13.  
  14. local tween = tweenService:Create(object, tweenInfo, goal)
  15. local tweenService = game:GetService("TweenService")
  16. local timeToFade = 0.0825
  17. local object = tool
  18. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  19. local goal2 = {}
  20. goal2.Grip = CFrame.new(0,-0.35,0.5) * CFrame.Angles(math.rad(0),0,0)
  21. local tween2 = tweenService:Create(object, tweenInfo, goal2)
  22. local light = Instance.new("PointLight",part2)
  23. light.Shadows = true
  24. light.Brightness = 1.5
  25. light.Color = Color3.fromRGB(222, 240, 250)
  26. light.Range = 0.1
  27. part = Instance.new("SpawnLocation",part2)
  28. part.Enabled = false
  29. part.Transparency = 1
  30. part.Size = Vector3.new(3,0.85,0.85)
  31. part.CanCollide = false
  32. part2.Reflectance = 0.15
  33. local weld = Instance.new("Weld",part2)
  34. weld.Part0 = part
  35. weld.Part1 = part2
  36. weld.C0 = CFrame.Angles(math.rad(90),0,math.rad(90))
  37. Mesh = Instance.new("SpecialMesh")
  38. Mesh.Parent = part
  39. Mesh.MeshId = "http://www.roblox.com/asset/?id=6116133190"
  40. Mesh.TextureId = "http://www.roblox.com/asset/?id=6116133252"
  41. Mesh.Scale = Vector3.new(0.05,0.05,0.05)
  42. Mesh2 = Instance.new("SpecialMesh")
  43. Mesh2.Parent = part2
  44. Mesh2.MeshId = "http://www.roblox.com/asset/?id=130099641"
  45. Mesh2.TextureId = "http://www.roblox.com/asset/?id=209727730"
  46. Mesh2.Scale = Vector3.new(0.65,0.65,0.65)
  47. AAAAAA = Instance.new("Sound")
  48. AAAAAA.SoundId = "rbxassetid://8272768532"
  49. AAAAAA.PlayOnRemove = true
  50. AAAAAA.Volume = 0.25
  51. active = false
  52. tool.Activated:Connect(function()
  53. active = true
  54. end)
  55. tool.Deactivated:Connect(function()
  56. active = false
  57. end)
  58. while task.wait() do
  59. if active then
  60. AAAAAA.Parent = part
  61. AAAAAA.SoundId = "rbxassetid://9061973224"
  62. AAAAAA.Volume = 1
  63. AAAAAA.TimePosition = 0.75
  64. AAAAAA.Parent = nil
  65. local shockwave = Instance.new("SpawnLocation",script)
  66. shockwave.Enabled = false
  67. shockwave.CanCollide = false
  68. shockwave.CanTouch = false
  69. shockwave.Anchored = true
  70. shockwave.Size = Vector3.new()
  71. shockwave.CFrame = part.CFrame * CFrame.new(0,1,0) * CFrame.Angles(0,math.rad(0),0)
  72. shockwave.Material = "ForceField"
  73. shockwave.Transparency = 0.125
  74. game:GetService("Debris"):AddItem(shockwave,5)
  75. Mesh = Instance.new("SpecialMesh")
  76. Mesh.Parent = shockwave
  77. Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  78. Mesh.Scale = Vector3.new(0,0,0)
  79. local tweenService = game:GetService("TweenService")
  80. local timeToFade = 0.235
  81. local object = Mesh
  82. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  83. local goal3 = {}
  84. goal3.Scale = Vector3.new(6,0.75,6)
  85.  
  86. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  87. tween3:Play()
  88. local tweenService = game:GetService("TweenService")
  89. local timeToFade = 0.235
  90. local object = shockwave
  91. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  92. local goal4 = {}
  93. goal4.Transparency = 1
  94.  
  95. local tween4 = tweenService:Create(object, tweenInfo, goal4)
  96. tween4:Play()
  97. local shockwave2 = Instance.new("SpawnLocation",script)
  98. shockwave2.Enabled = false
  99. shockwave2.CanCollide = false
  100. shockwave2.CanTouch = false
  101. shockwave2.Anchored = true
  102. shockwave2.Size = Vector3.new()
  103. shockwave2.CFrame = part.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(0,math.rad(0),0)
  104. shockwave2.Material = "ForceField"
  105. shockwave2.Transparency = 0.125
  106. game:GetService("Debris"):AddItem(shockwave2,5)
  107. shockwave2.Color = Color3.new(0.75,0.75,0.75)
  108. Mesh = Instance.new("SpecialMesh")
  109. Mesh.Parent = shockwave2
  110. Mesh.MeshId = "http://www.roblox.com/asset/?id=20329976"
  111. Mesh.Scale = Vector3.new(0,0,0)
  112. local tweenService = game:GetService("TweenService")
  113. local timeToFade = 0.265
  114. local object = Mesh
  115. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  116. local goal3 = {}
  117. goal3.Scale = Vector3.new(3,1.75,3)
  118.  
  119. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  120. tween3:Play()
  121. local tweenService = game:GetService("TweenService")
  122. local timeToFade = 0.265
  123. local object = shockwave2
  124. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  125. local goal4 = {}
  126. goal4.Transparency = 1
  127.  
  128. local tween4 = tweenService:Create(object, tweenInfo, goal4)
  129. tween4:Play()
  130. local shockwave3 = Instance.new("SpawnLocation",script)
  131. shockwave3.Enabled = false
  132. shockwave3.CanCollide = false
  133. shockwave3.CanTouch = false
  134. shockwave3.Anchored = true
  135. shockwave3.Size = Vector3.new()
  136. shockwave3.CFrame = part.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(0,math.rad(0),0)
  137. shockwave3.Material = "ForceField"
  138. shockwave3.Transparency = 0.125
  139. game:GetService("Debris"):AddItem(shockwave3,5)
  140. shockwave3.Color = Color3.new(1,1,1)
  141. Mesh = Instance.new("SpecialMesh")
  142. Mesh.Parent = shockwave3
  143. Mesh.MeshId = "http://www.roblox.com/asset/?id=5812640290"
  144. Mesh.Scale = Vector3.new(0,0,0)
  145. local tweenService = game:GetService("TweenService")
  146. local timeToFade = 0.365
  147. local object = Mesh
  148. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  149. local goal3 = {}
  150. goal3.Scale = Vector3.new(1,4,1)
  151.  
  152. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  153. tween3:Play()
  154. local tweenService = game:GetService("TweenService")
  155. local timeToFade = 0.365
  156. local object = shockwave3
  157. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  158. local goal4 = {}
  159. goal4.Transparency = 1
  160.  
  161. local tween4 = tweenService:Create(object, tweenInfo, goal4)
  162. tween4:Play()
  163. local shockwave4 = Instance.new("SpawnLocation",script)
  164. shockwave4.Enabled = false
  165. shockwave4.CanCollide = false
  166. shockwave4.CanTouch = false
  167. shockwave4.Anchored = true
  168. shockwave4.CFrame = part.CFrame * CFrame.new(0,1.5,0) * CFrame.Angles(0,math.rad(0),0)
  169. shockwave4.Material = "ForceField"
  170. game:GetService("Debris"):AddItem(shockwave4,5)
  171. shockwave4.Transparency = 0.125
  172. shockwave4.Color = Color3.new(1,1,1)
  173. shockwave4.Size = Vector3.new()
  174. Mesh = Instance.new("SpecialMesh")
  175. Mesh.Parent = shockwave4
  176. Mesh.MeshId = "http://www.roblox.com/asset/?id=2855431753"
  177. Mesh.Scale = Vector3.new(0,0,0)
  178. local tweenService = game:GetService("TweenService")
  179. local timeToFade = 0.565
  180. local object = Mesh
  181. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  182. local goal3 = {}
  183. goal3.Scale = Vector3.new(1,1,1)
  184.  
  185. local tween3 = tweenService:Create(object, tweenInfo, goal3)
  186. tween3:Play()
  187. local tweenService = game:GetService("TweenService")
  188. local timeToFade = 0.565
  189. local object = shockwave4
  190. local tweenInfo = TweenInfo.new(timeToFade,Enum.EasingStyle.Cubic)
  191. local goal4 = {}
  192. goal4.Transparency = 1
  193. goal4.CFrame = object.CFrame * CFrame.Angles(0,math.rad(180),0)
  194. local tween4 = tweenService:Create(object, tweenInfo, goal4)
  195. tween4:Play()
  196. local p = part:Clone()
  197. p.Parent = script
  198. p.Transparency = 0
  199. p.Touched:Connect(function(v)
  200. if v.Name ~= "Base" then
  201. v.Velocity = v.Velocity + p.Velocity
  202. AAAAAA.Parent = p
  203. AAAAAA.SoundId = "rbxassetid://8272768532"
  204. AAAAAA.Volume = 0.25
  205. AAAAAA.TimePosition = 0
  206. AAAAAA.Parent = nil
  207. end
  208. end)
  209. game:GetService("Debris"):AddItem(p,5)
  210. p.CFrame = part.CFrame * CFrame.new(0,10,0)
  211. p.CanCollide = true
  212. p:ApplyImpulse(part2.CFrame.lookVector * 1000)
  213. local tr = Instance.new("Trail",p)
  214. local attach1 = Instance.new("Attachment", p)
  215. local attach2 = Instance.new("Attachment", p)
  216. attach1.CFrame = CFrame.new(0.35,0,0)
  217. attach2.CFrame = CFrame.new(-0.35,0,0)
  218. tr.Attachment0 = attach1
  219. tr.Attachment1 = attach2
  220. tr.LightInfluence = 1
  221. tr.Transparency = NumberSequence.new(0.8125,1)
  222. tr.Lifetime = 0.185
  223. tr.WidthScale = NumberSequence.new{NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(1, 0)}
  224. tr.FaceCamera = true
  225. tween:Play()
  226. light.Range = 7
  227. wait(0.125)
  228. tween2:Play()
  229. light.Range = 0.1
  230. wait(0.0925)
  231. end
  232. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement