MehWotever

TeaPot

Sep 5th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.75 KB | None | 0 0
  1. --Saz
  2.  
  3. vPlayer=game.Players.LocalPlayer
  4.  
  5. Tool=Instance.new("Tool")
  6. Tool.Name="Tea"
  7. Tool.Parent=vPlayer.Backpack
  8. Handle=Instance.new("Part")
  9. Handle.Size=Vector3.new(2.6,2.6,2.6)
  10. Handle.TopSurface=0
  11. Handle.BottomSurface=0
  12. Handle.Name="Handle"
  13. Handle.formFactor="Custom"
  14. Handle.Parent=Tool
  15. Handle.BrickColor=BrickColor:White()
  16. Tool.GripRight=Vector3.new(0,0,1)
  17. Tool.GripPos=Vector3.new(-1.08,-.1,.1)
  18.  
  19. m=Instance.new("SpecialMesh")
  20. m.MeshType="FileMesh"
  21. m.MeshId="http://www.roblox.com/asset/?id=1029523"
  22. m.Parent=Handle
  23. m.Scale=Vector3.new(.05,.05,.05)
  24.  
  25. Mouse=vPlayer:GetMouse()
  26. deb=true
  27. onClick=function()
  28. if deb==false then
  29. return
  30. end
  31. deb=false
  32. e=0
  33. rs=vPlayer.Character["Torso"]["Right Shoulder"]
  34.  
  35.  
  36. for i=1, 4 do
  37. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,math.rad(30))
  38. wait(.031)
  39. end
  40. for i=1, 2 do
  41. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30))
  42. wait(.031)
  43. end
  44. --throw
  45. hh=Tool.Handle:clone()
  46. dir=(hh.Position - game.Players.LocalPlayer:GetMouse().Hit.p).unit*-1
  47. Tool.Handle.Transparency=1
  48. hh.CanCollide=true
  49. hh.Parent=workspace
  50. hh.Velocity=dir*200+Vector3.new(0,5,0)
  51. ff=Instance.new("BodyForce")
  52. ff.force=Vector3.new(0,hh:GetMass()*140,0)
  53. ff.Parent=hh
  54. for i=1, 2 do
  55. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-math.rad(30))
  56. hh.Velocity=dir*300
  57. wait(.031)
  58. end
  59. hh.Touched:connect(function(hit)
  60. if hit==nil then return end
  61. if hit.Parent==nil then return end
  62. if hit.Parent:FindFirstChild("Humanoid")~=nil and hh:FindFirstChild("Hit")==nil then
  63. if hit.Parent==game.Players.LocalPlayer.Character then return end
  64. hit.Parent:BreakJoints()
  65. s=Instance.new("Sound")
  66. s.Volume=1
  67. s.Parent=hh
  68. s.Name="Hit1"
  69. s.SoundId="http://www.roblox.com/asset/?id=160423437"
  70. s:Play()
  71.  
  72. for i=1, 4 do
  73. s5=Instance.new("Sound")
  74. s5.Volume=1
  75. s5.Parent=hh
  76. s5.Name="Hit"
  77. s5.SoundId="http://www.roblox.com/asset/?id=138122923"
  78. s5.Pitch=.85
  79. s5:Play()
  80. end
  81.  
  82. for _,v in pairs(hit.Parent:children()) do
  83. if v:IsA("BasePart") then
  84. v.Velocity=(v.Position - hh.Position).unit * 90 + Vector3.new(math.random(-20,20),math.random(0,20),math.random(-20,20))
  85. v.RotVelocity=-v.Velocity * 1.2
  86. end
  87. end
  88.  
  89. hh.Transparency=1
  90. for i=1, 30 do
  91. p=Instance.new("Part")
  92. p.TopSurface=0
  93. p.BottomSurface=0
  94. p.Name="Shard"
  95. p.CFrame=hh.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) + Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10)
  96. p.BrickColor=hh.BrickColor
  97. p.CanCollide=false
  98. p.formFactor="Custom"
  99. p.Size=Vector3.new(.2,.2,.2)
  100. if math.random(1,3)==1 then
  101. m=Instance.new("BlockMesh")
  102. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  103. m.Parent=p
  104. else
  105. m=Instance.new("SpecialMesh")
  106. m.MeshType="Wedge"
  107. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  108. m.Parent=p
  109. end
  110. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  111. p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6
  112. p.Parent=workspace
  113. end
  114.  
  115. hh.Anchored=true
  116.  
  117. end
  118. if hit.Parent:FindFirstChild("Humanoid")==nil and hh:FindFirstChild("Hit")==nil and hit.CanCollide==true then
  119. hh.Transparency=1
  120. for i=1, 30 do
  121. p=Instance.new("Part")
  122. p.TopSurface=0
  123. p.BottomSurface=0
  124. p.Name="Shard"
  125. p.CFrame=hh.CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50,50),math.random(-50,50),math.random(-50,50)) + Vector3.new(math.random(-15,15)/10,math.random(-15,15)/10,math.random(-15,15)/10)
  126. p.BrickColor=hh.BrickColor
  127. p.CanCollide=false
  128. p.formFactor="Custom"
  129. p.Size=Vector3.new(.2,.2,.2)
  130. if math.random(1,3)==1 then
  131. m=Instance.new("BlockMesh")
  132. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  133. m.Parent=p
  134. else
  135. m=Instance.new("SpecialMesh")
  136. m.MeshType="Wedge"
  137. m.Scale=Vector3.new(math.random(10,15)/10,.2,math.random(10,15)/10)
  138. m.Parent=p
  139. end
  140. p.RotVelocity=Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
  141. p.Velocity=p.RotVelocity + Vector3.new(0,25,0) + hh.Velocity / 6
  142. p.Parent=workspace
  143. end
  144. for i=1, 4 do
  145. s5=Instance.new("Sound")
  146. s5.Volume=1
  147. s5.Parent=hh
  148. s5.Name="Hit"
  149. s5.SoundId="http://www.roblox.com/asset/?id=138122923"
  150. s5.Pitch=.85
  151. s5:Play()
  152. end
  153. hh.Anchored=true
  154. end
  155. end)
  156. game:GetService("Debris"):AddItem(hh,5)
  157. Tool.Handle.Transparency=0
  158. deb=true
  159. end
  160. Tool.Activated:connect(onClick)
Add Comment
Please, Sign In to add comment