Advertisement
AndyWolf6610

Lemonade Slurpee

Nov 20th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.47 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Tool0 = Instance.new("Tool")
  20. Part1 = Instance.new("Part")
  21. Sound2 = Instance.new("Sound")
  22. SpecialMesh3 = Instance.new("SpecialMesh")
  23. LocalScript4 = Instance.new("LocalScript")
  24. Script5 = Instance.new("Script")
  25. Script6 = Instance.new("Script")
  26. Tool0.Name = "Slurpee"
  27. Tool0.Parent = mas
  28. Tool0.TextureId = "http://www.roblox.com/asset/?id=54970111 "
  29. Tool0.Grip = CFrame.new(0.200000003, -0.200000003, 0, 0.800000012, -0, 0.600000024, 0.600000024, 0, -0.800000012, 0, 1, 0)
  30. Tool0.GripForward = Vector3.new(-0.600000024, 0.800000012, -0)
  31. Tool0.GripPos = Vector3.new(0.200000003, -0.200000003, 0)
  32. Tool0.GripRight = Vector3.new(0.800000012, 0.600000024, 0)
  33. Tool0.GripUp = Vector3.new(-0, 0, 1)
  34. Part1.Name = "Handle"
  35. Part1.Parent = Tool0
  36. Part1.CFrame = CFrame.new(8.31000042, 0.694999993, 152.369995, -0.999999881, 1.02923602e-19, -1.29560332e-17, -1.29560332e-17, 5.96046448e-08, 0.99999994, 1.02923602e-19, 0.99999994, 5.96046448e-08)
  37. Part1.Orientation = Vector3.new(-89.9800034, 0, 0)
  38. Part1.Position = Vector3.new(8.31000042, 0.694999993, 152.369995)
  39. Part1.Rotation = Vector3.new(-90, 0, -180)
  40. Part1.Color = Color3.new(0.388235, 0.372549, 0.384314)
  41. Part1.Size = Vector3.new(0.620002508, 0.740000069, 1.3899982)
  42. Part1.BottomSurface = Enum.SurfaceType.Smooth
  43. Part1.BrickColor = BrickColor.new("Dark stone grey")
  44. Part1.TopSurface = Enum.SurfaceType.Smooth
  45. Part1.brickColor = BrickColor.new("Dark stone grey")
  46. Part1.FormFactor = Enum.FormFactor.Custom
  47. Part1.formFactor = Enum.FormFactor.Custom
  48. Sound2.Name = "DrinkSound"
  49. Sound2.Parent = Part1
  50. Sound2.SoundId = "http://www.roblox.com/asset/?id=10722059"
  51. SpecialMesh3.Parent = Part1
  52. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=54969977 "
  53. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=55697886"
  54. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  55. LocalScript4.Name = "Local Gui"
  56. LocalScript4.Parent = Tool0
  57. table.insert(cors,sandbox(LocalScript4,function()
  58. Tool = script.Parent
  59.  
  60. local stillEquipped = false
  61.  
  62. function onEquippedLocal(mouse)
  63. stillEquipped = true
  64. if mouse == nil then
  65. print("Mouse not found")
  66. return
  67. end
  68. while stillEquipped do
  69. print("Setting Mouse to go")
  70. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  71. while Tool.Enabled and stillEquipped do
  72. wait(0.01)
  73. end
  74. print("Setting Mouse to wait")
  75. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  76. while not Tool.Enabled and stillEquipped do
  77. wait(0.01)
  78. end
  79. end
  80. end
  81.  
  82.  
  83. function onUnequippedLocal()
  84. stillEquipped = false
  85. end
  86.  
  87. Tool.Equipped:connect(onEquippedLocal)
  88. Tool.Unequipped:connect(onUnequippedLocal)
  89. end))
  90. Script5.Name = "SlurpeeScript"
  91. Script5.Parent = Tool0
  92. table.insert(cors,sandbox(Script5,function()
  93. local Tool = script.Parent;
  94.  
  95. enabled = true
  96.  
  97.  
  98. function onActivated()
  99. if not enabled then
  100. return
  101. end
  102.  
  103. enabled = false
  104. Tool.GripForward = Vector3.new(0, 0.4472, -0.8944)
  105. Tool.GripPos = Vector3.new(1.5, -0.5, -0.1)
  106. Tool.GripRight = Vector3.new(1.0, 0.0, 0.0)
  107. Tool.GripUp = Vector3.new(0, 0.8944, 0.4472)
  108.  
  109.  
  110. Tool.Handle.DrinkSound:Play()
  111.  
  112. wait(2.0)
  113.  
  114. local h = Tool.Parent:FindFirstChild("Humanoid")
  115. if (h ~= nil) then
  116. if (Tool.Parent:FindFirstChild("SpeedEffect") == nil) then
  117. local s = script.Parent.SpeedEffect:Clone()
  118. s.Disabled = false
  119. s.Parent = Tool.Parent
  120. end
  121. end
  122.  
  123.  
  124. Tool.GripForward = Vector3.new(-0.6, 0.8, 0.0)
  125. Tool.GripPos = Vector3.new(0.2, -0.2,0)
  126. Tool.GripRight = Vector3.new(0.8, 0.6, 0.0)
  127. Tool.GripUp = Vector3.new(0.0, 0.0, 1.0)
  128.  
  129.  
  130. wait(30)
  131. enabled = true
  132.  
  133. end
  134.  
  135.  
  136.  
  137. script.Parent.Activated:connect(onActivated)
  138.  
  139.  
  140. end))
  141. Script6.Name = "SpeedEffect"
  142. Script6.Parent = Tool0
  143. table.insert(cors,sandbox(Script6,function()
  144. print("run latte")
  145.  
  146.  
  147. -- assume we are in the character, let's check
  148.  
  149. function sepuku()
  150. script.Parent = nil
  151. end
  152.  
  153. local h = script.Parent:FindFirstChild("Humanoid")
  154.  
  155. if (h == nil) then sepuku() end
  156.  
  157. local oldSpeed = h.WalkSpeed
  158. h.WalkSpeed = h.WalkSpeed * 1.5
  159.  
  160.  
  161.  
  162.  
  163. local torso = script.Parent:FindFirstChild("Torso")
  164.  
  165. if (torso == nil) then sepuku() end
  166.  
  167.  
  168. local head = script.Parent:FindFirstChild("Head")
  169. if (head == nil) then head = torso end
  170.  
  171.  
  172.  
  173. local s = Instance.new("Sparkles")
  174. s.Color = Color3.new(0.6, 0, 0)
  175. s.Parent = torso
  176.  
  177.  
  178. local count = h:FindFirstChild("CoffeeCount")
  179. if (count == nil) then
  180. count = Instance.new("IntValue")
  181. count.Name = "CoffeeCount"
  182. count.Value = 1
  183. count.Parent = h
  184. else
  185.  
  186. if (count.Value > 3) then
  187. if (math.random() > .5) then
  188.  
  189. local sound = Instance.new("Sound")
  190. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  191. sound.Parent = head
  192. sound.Volume = 1
  193. sound:play()
  194.  
  195. local e = Instance.new("Explosion")
  196. e.BlastRadius = 4
  197. e.Position = head.Position
  198.  
  199. s:Clone().Parent = head
  200. e.Parent = head
  201.  
  202.  
  203. end
  204. end
  205. count.Value = count.Value + 1
  206. end
  207.  
  208. wait(30)
  209.  
  210. h.WalkSpeed = oldSpeed
  211. s:Remove()
  212.  
  213.  
  214. script.Parent = nil
  215. end))
  216. Script6.Disabled = true
  217. for i,v in pairs(mas:GetChildren()) do
  218. v.Parent = script
  219. pcall(function() v:MakeJoints() end)
  220. end
  221. mas:Destroy()
  222. for i,v in pairs(cors) do
  223. spawn(function()
  224. pcall(v)
  225. end)
  226. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement