Advertisement
AndyWolf6610

Blue Slurpee

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