Advertisement
AndyWolf6610

Strawberry Slurpee

Nov 20th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.39 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. Script4 = Instance.new("Script")
  24. LocalScript5 = Instance.new("LocalScript")
  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.31000137, 0.694999993, 152.369995, -0.999999762, 1.82972351e-21, -9.91329245e-17, -9.91329245e-17, 5.96046448e-08, 0.999999881, 1.81979735e-21, 0.999999881, 1.78813934e-07)
  37. Part1.Orientation = Vector3.new(-89.9700012, 0, 0)
  38. Part1.Position = Vector3.new(8.31000137, 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. Sound2.Name = "DrinkSound"
  47. Sound2.Parent = Part1
  48. Sound2.SoundId = "http://www.roblox.com/asset/?id=10722059"
  49. SpecialMesh3.Parent = Part1
  50. SpecialMesh3.MeshId = "http://www.roblox.com/asset/?id=54969977 "
  51. SpecialMesh3.TextureId = "http://www.roblox.com/asset/?id=55702318"
  52. SpecialMesh3.MeshType = Enum.MeshType.FileMesh
  53. Script4.Name = "SpeedEffect"
  54. Script4.Parent = Tool0
  55. table.insert(cors,sandbox(Script4,function()
  56. print("run latte")
  57.  
  58.  
  59. -- assume we are in the character, let's check
  60.  
  61. function sepuku()
  62. script.Parent = nil
  63. end
  64.  
  65. local h = script.Parent:FindFirstChild("Humanoid")
  66.  
  67. if (h == nil) then sepuku() end
  68.  
  69. local oldSpeed = h.WalkSpeed
  70. h.WalkSpeed = h.WalkSpeed * 1.5
  71.  
  72.  
  73.  
  74.  
  75. local torso = script.Parent:FindFirstChild("Torso")
  76.  
  77. if (torso == nil) then sepuku() end
  78.  
  79.  
  80. local head = script.Parent:FindFirstChild("Head")
  81. if (head == nil) then head = torso end
  82.  
  83.  
  84.  
  85. local s = Instance.new("Sparkles")
  86. s.Color = Color3.new(0.6, 0, 0)
  87. s.Parent = torso
  88.  
  89.  
  90. local count = h:FindFirstChild("CoffeeCount")
  91. if (count == nil) then
  92. count = Instance.new("IntValue")
  93. count.Name = "CoffeeCount"
  94. count.Value = 1
  95. count.Parent = h
  96. else
  97.  
  98. if (count.Value > 3) then
  99. if (math.random() > .5) then
  100.  
  101. local sound = Instance.new("Sound")
  102. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  103. sound.Parent = head
  104. sound.Volume = 1
  105. sound:play()
  106.  
  107. local e = Instance.new("Explosion")
  108. e.BlastRadius = 4
  109. e.Position = head.Position
  110.  
  111. s:Clone().Parent = head
  112. e.Parent = head
  113.  
  114.  
  115. end
  116. end
  117. count.Value = count.Value + 1
  118. end
  119.  
  120. wait(30)
  121.  
  122. h.WalkSpeed = oldSpeed
  123. s:Remove()
  124.  
  125.  
  126. script.Parent = nil
  127. end))
  128. Script4.Disabled = true
  129. LocalScript5.Name = "Local Gui"
  130. LocalScript5.Parent = Tool0
  131. table.insert(cors,sandbox(LocalScript5,function()
  132. Tool = script.Parent
  133.  
  134. local stillEquipped = false
  135.  
  136. function onEquippedLocal(mouse)
  137. stillEquipped = true
  138. if mouse == nil then
  139. print("Mouse not found")
  140. return
  141. end
  142. while stillEquipped do
  143. print("Setting Mouse to go")
  144. mouse.Icon = "rbxasset://textures\\GunCursor.png"
  145. while Tool.Enabled and stillEquipped do
  146. wait(0.01)
  147. end
  148. print("Setting Mouse to wait")
  149. mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
  150. while not Tool.Enabled and stillEquipped do
  151. wait(0.01)
  152. end
  153. end
  154. end
  155.  
  156.  
  157. function onUnequippedLocal()
  158. stillEquipped = false
  159. end
  160.  
  161. Tool.Equipped:connect(onEquippedLocal)
  162. Tool.Unequipped:connect(onUnequippedLocal)
  163. end))
  164. Script6.Name = "SlurpeeScript"
  165. Script6.Parent = Tool0
  166. table.insert(cors,sandbox(Script6,function()
  167. local Tool = script.Parent;
  168.  
  169. enabled = true
  170.  
  171.  
  172. function onActivated()
  173. if not enabled then
  174. return
  175. end
  176.  
  177. enabled = false
  178. Tool.GripForward = Vector3.new(0, 0.4472, -0.8944)
  179. Tool.GripPos = Vector3.new(1.5, -0.5, -0.1)
  180. Tool.GripRight = Vector3.new(1.0, 0.0, 0.0)
  181. Tool.GripUp = Vector3.new(0, 0.8944, 0.4472)
  182.  
  183.  
  184. Tool.Handle.DrinkSound:Play()
  185.  
  186. wait(2.0)
  187.  
  188. local h = Tool.Parent:FindFirstChild("Humanoid")
  189. if (h ~= nil) then
  190. if (Tool.Parent:FindFirstChild("SpeedEffect") == nil) then
  191. local s = script.Parent.SpeedEffect:Clone()
  192. s.Disabled = false
  193. s.Parent = Tool.Parent
  194. end
  195. end
  196.  
  197.  
  198. Tool.GripForward = Vector3.new(-0.6, 0.8, 0.0)
  199. Tool.GripPos = Vector3.new(0.2, -0.2,0)
  200. Tool.GripRight = Vector3.new(0.8, 0.6, 0.0)
  201. Tool.GripUp = Vector3.new(0.0, 0.0, 1.0)
  202.  
  203.  
  204. wait(30)
  205. enabled = true
  206.  
  207. end
  208.  
  209.  
  210.  
  211. script.Parent.Activated:connect(onActivated)
  212.  
  213.  
  214. end))
  215. for i,v in pairs(mas:GetChildren()) do
  216. v.Parent = script
  217. pcall(function() v:MakeJoints() end)
  218. end
  219. mas:Destroy()
  220. for i,v in pairs(cors) do
  221. spawn(function()
  222. pcall(v)
  223. end)
  224. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement