Advertisement
Ahtoh13131423144235

Roblox Lemonade Script

Oct 25th, 2017
901
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.71 KB | None | 0 0
  1. --Made by Ahtoh13131423144235
  2.  
  3. local player=game.Players.LocalPlayer
  4. local char=player.Character
  5. local mouse=player:GetMouse()
  6. local uses=3
  7. local debounce=false
  8.  
  9. local lemonade=Instance.new("Model")
  10. lemonade.Parent=char
  11. lemonade.Name="Lemonade"
  12. local handle=Instance.new("Part")
  13. handle.Parent=lemonade
  14. handle.Name="Handle"
  15. handle.BrickColor=BrickColor.new("White")
  16. handle.Transparency=0.50
  17. handle.Anchored=false
  18. handle.CanCollide=true
  19. handle.Shape="Cylinder"
  20. handle.Size=Vector3.new(1.4,1.5,1.4)
  21. handle.TopSurface="Smooth"
  22. handle.BottomSurface="Smooth"
  23. local lemon=Instance.new("Part")
  24. lemon.Parent=lemonade
  25. lemon.Name="Lemon"
  26. lemon.BrickColor=BrickColor.new("Bright yellow")
  27. lemon.Anchored=false
  28. lemon.CanCollide=true
  29. lemon.Size=Vector3.new(1.3,1.4,1.3)
  30. lemon.Position=Vector3.new(0,1,0)
  31. lemon.TopSurface="Smooth"
  32. lemon.BottomSurface="Smooth"
  33. local lemonMesh=Instance.new("SpecialMesh")
  34. lemonMesh.Parent=lemon
  35. lemonMesh.Name="CylinderMesh"
  36. lemonMesh.MeshType="Cylinder"
  37. lemonMesh.Scale=Vector3.new(1,1,1)
  38. local bottle=Instance.new("Part")
  39. bottle.Parent=lemonade
  40. bottle.Name="Bottle"
  41. bottle.BrickColor=BrickColor.new("Bright yellow")
  42. bottle.Anchored=false
  43. bottle.CanCollide=true
  44. bottle.Size=Vector3.new(1,1.7,1)
  45. local bottleMesh=Instance.new("SpecialMesh")
  46. bottleMesh.Parent=bottle
  47. bottleMesh.Name="BottleMesh"
  48. bottleMesh.MeshType="FileMesh"
  49. bottleMesh.MeshId="http://www.roblox.com/asset/?id=29690481"
  50. local w1=Instance.new("Weld")
  51. w1.Parent=char["Right Arm"]
  52. w1.Name="HandleWeld"
  53. w1.Part0=char["Right Arm"]
  54. w1.Part1=handle
  55. w1.C0=CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(0,1.57,0)
  56. local w2=Instance.new("Weld")
  57. w2.Parent=handle
  58. w2.Name="LemonWeld"
  59. w2.Part0=handle
  60. w2.Part1=lemon
  61. w2.C0=CFrame.new(0,0,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  62. local w3=Instance.new("Weld")
  63. w3.Parent=char["Left Arm"]
  64. w3.Name="BottleWeld"
  65. w3.Part0=char["Left Arm"]
  66. w3.Part1=bottle
  67. w3.C0=CFrame.new(0,-1.1,-0.3)*CFrame.fromEulerAnglesXYZ(-1.57,0,0)
  68. local rs=Instance.new("Weld")
  69. rs.Parent=char.Torso
  70. rs.Name="RightArmWeld"
  71. rs.Part0=char.Torso
  72. rs.Part1=char["Right Arm"]
  73. rs.C0=CFrame.new(1.3,0.5,0)*CFrame.fromEulerAnglesXYZ(1.57,0,-0.2)
  74. rs.C1=CFrame.new(0,0.5,0)
  75. local ls=Instance.new("Weld")
  76. ls.Parent=char.Torso
  77. ls.Name="LeftArmWeld"
  78. ls.Part0=char.Torso
  79. ls.Part1=char["Left Arm"]
  80. ls.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(0,0,0)
  81. ls.C1=CFrame.new(0,0.5,0)
  82. local drink=Instance.new("Sound")
  83. drink.Parent=handle
  84. drink.Name="Drink"
  85. drink.SoundId="http://www.roblox.com/asset/?id=10722059"
  86. local drinkPour=Instance.new("Sound")
  87. drinkPour.Parent=handle
  88. drinkPour.Name="DrinkPour"
  89. drinkPour.SoundId="http://www.roblox.com/asset/?id=554208103"
  90.  
  91. mouse.Button1Down:connect(function()
  92. if debounce==false and uses>0 then
  93. debounce=true
  94. uses=uses-1
  95. for i=1,5 do
  96. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,-0.1)
  97. wait()
  98. end
  99. for i=1,3 do
  100. w1.C0=w1.C0*CFrame.new(0.1,0,0)
  101. wait()
  102. end
  103. for i=1,3 do
  104. w1.C0=w1.C0*CFrame.new(0,0,-0.1)
  105. wait()
  106. end
  107. for i=1,3 do
  108. w1.C0=w1.C0*CFrame.fromEulerAnglesXYZ(0,0,0.1)
  109. wait()
  110. end
  111. for i=1,3 do
  112. w1.C0=w1.C0*CFrame.fromEulerAnglesXYZ(0,0,0.1)
  113. wait()
  114. end
  115. drink:Play()
  116. for i=1,3 do
  117. lemonMesh.Scale=lemonMesh.Scale-Vector3.new(0.1,0,0)
  118. w2.C0=w2.C0*CFrame.new(-0.05,0,0)
  119. wait(0.2)
  120. end
  121. wait(2)
  122. for i=1,3 do
  123. w1.C0=w1.C0*CFrame.fromEulerAnglesXYZ(0,0,-0.1)
  124. wait()
  125. end
  126. for i=1,3 do
  127. w1.C0=w1.C0*CFrame.fromEulerAnglesXYZ(0,0,-0.1)
  128. wait()
  129. end
  130. for i=1,3 do
  131. w1.C0=w1.C0*CFrame.new(-0.1,0,0)
  132. wait()
  133. end
  134. for i=1,5 do
  135. rs.C0=rs.C0*CFrame.fromEulerAnglesXYZ(0,0,0.1)
  136. wait()
  137. end
  138. debounce=false
  139. w1.C0=CFrame.new(0,-1.4,0)*CFrame.fromEulerAnglesXYZ(0,1.57,0)
  140. elseif debounce==false and uses<=0 then
  141. debounce=true
  142. for i=1,16 do
  143. ls.C0=ls.C0*CFrame.fromEulerAnglesXYZ(0.1,0,0)
  144. wait()
  145. end
  146. ls.C0=CFrame.new(-1.5,0.5,0)*CFrame.fromEulerAnglesXYZ(1.57,0,0)
  147. for i=1,7 do
  148. ls.C0=ls.C0*CFrame.fromEulerAnglesXYZ(0,0,0.1)
  149. wait()
  150. end
  151. for i=1,7 do
  152. ls.C0=ls.C0*CFrame.new(0,-0.1,0)
  153. wait()
  154. end
  155. for i=1,9 do
  156. w1.C0=w1.C0*CFrame.new(-0.1,0,0)
  157. wait()
  158. end
  159. for i=1,3 do
  160. w3.C0=w3.C0*CFrame.new(0.1,0,0)
  161. wait()
  162. end
  163. for i=1,19 do
  164. w3.C0=w3.C0*CFrame.fromEulerAnglesXYZ(-0.1,0,0)
  165. wait()
  166. end
  167. drinkPour:Play()
  168. for i=1,9 do
  169. lemonMesh.Scale=lemonMesh.Scale+Vector3.new(0.1,0,0)
  170. w2.C0=w2.C0*CFrame.new(0.05,0,0)
  171. wait(0.2)
  172. end
  173. for i=1,3 do
  174. w3.C0=w3.C0*CFrame.new(-0.1,0,0)
  175. wait()
  176. end
  177. for i=1,19 do
  178. w3.C0=w3.C0*CFrame.fromEulerAnglesXYZ(0.1,0,0)
  179. wait()
  180. end
  181. for i=1,9 do
  182. w1.C0=w1.C0*CFrame.new(0.1,0,0)
  183. wait()
  184. end
  185. for i=1,7 do
  186. ls.C0=ls.C0*CFrame.new(0,0.1,0)
  187. wait()
  188. end
  189. for i=1,7 do
  190. ls.C0=ls.C0*CFrame.fromEulerAnglesXYZ(0,0,0-.1)
  191. wait()
  192. end
  193. for i=1,16 do
  194. ls.C0=ls.C0*CFrame.fromEulerAnglesXYZ(-0.1,0,0)
  195. wait()
  196. end
  197. ls.C0=CFrame.new(-1.5,0.5,0)
  198. debounce=false
  199. uses=3
  200. end
  201. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement