AndyWolf6610

Cheetos

Nov 20th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.59 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. Sound3 = Instance.new("Sound")
  23. SpecialMesh4 = Instance.new("SpecialMesh")
  24. Script5 = Instance.new("Script")
  25. LocalScript6 = Instance.new("LocalScript")
  26. Script7 = Instance.new("Script")
  27. Tool0.Name = "Cheetos Flamin' Hot Crunchy"
  28. Tool0.Parent = mas
  29. Tool0.TextureId = "http://www.roblox.com/asset/?id=8986840"
  30. Part1.Name = "Handle"
  31. Part1.Parent = Tool0
  32. Part1.CFrame = CFrame.new(8.31000042, 0.694999993, 152.369995, 6.66379929e-05, 9.99530926e-07, -0.99999994, 1.0041839e-06, 1, 9.99597773e-07, 0.99999994, -1.00425029e-06, 6.66379929e-05)
  33. Part1.Orientation = Vector3.new(0, -90, 0)
  34. Part1.Position = Vector3.new(8.31000042, 0.694999993, 152.369995)
  35. Part1.Rotation = Vector3.new(-0.860000014, -89.9800034, -0.860000014)
  36. Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
  37. Part1.Size = Vector3.new(1, 1.60000002, 1)
  38. Part1.BottomSurface = Enum.SurfaceType.Smooth
  39. Part1.BrickColor = BrickColor.new("Mid gray")
  40. Part1.TopSurface = Enum.SurfaceType.Smooth
  41. Part1.brickColor = BrickColor.new("Mid gray")
  42. Part1.FormFactor = Enum.FormFactor.Plate
  43. Part1.formFactor = Enum.FormFactor.Plate
  44. Sound2.Name = "DrinkSound"
  45. Sound2.Parent = Part1
  46. Sound2.EmitterSize = 0
  47. Sound2.MinDistance = 0
  48. Sound2.SoundId = "http://www.roblox.com/asset/?id=212887990"
  49. Sound2.Volume = 1
  50. Sound3.Name = "OpenSound"
  51. Sound3.Parent = Part1
  52. Sound3.EmitterSize = 0
  53. Sound3.MinDistance = 0
  54. Sound3.Pitch = 2.5999999046326
  55. Sound3.PlaybackSpeed = 2.5999999046326
  56. Sound3.SoundId = "http://www.roblox.com/asset/?id=138081308"
  57. Sound3.Volume = 1
  58. SpecialMesh4.Parent = Part1
  59. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=19106014"
  60. SpecialMesh4.Scale = Vector3.new(0.5, 0.699999988, 0.5)
  61. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=334818346"
  62. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  63. Script5.Name = "SpeedEffect"
  64. Script5.Parent = Tool0
  65. table.insert(cors,sandbox(Script5,function()
  66. print("run latte")
  67.  
  68.  
  69. -- assume we are in the character, let's check
  70.  
  71. function sepuku()
  72. script.Parent = nil
  73. end
  74.  
  75. local h = script.Parent:FindFirstChild("Humanoid")
  76.  
  77. if (h == nil) then sepuku() end
  78.  
  79. local oldSpeed = h.WalkSpeed
  80. h.WalkSpeed = h.WalkSpeed * 1.6
  81.  
  82.  
  83.  
  84.  
  85. local torso = script.Parent:FindFirstChild("Torso")
  86.  
  87. if (torso == nil) then sepuku() end
  88.  
  89.  
  90. local head = script.Parent:FindFirstChild("Head")
  91. if (head == nil) then head = torso end
  92.  
  93.  
  94.  
  95. local s = Instance.new("Fire")
  96. s.Color = Color3.new(255, 85, 0)
  97. s.Parent = torso
  98.  
  99.  
  100. local count = h:FindFirstChild("CoffeeCount")
  101. if (count == nil) then
  102. count = Instance.new("IntValue")
  103. count.Name = "CoffeeCount"
  104. count.Value = 1
  105. count.Parent = h
  106. else
  107.  
  108. if (count.Value > 3) then
  109. if (math.random() > .5) then
  110.  
  111. local sound = Instance.new("Sound")
  112. sound.SoundId = "rbxasset://sounds\\Rocket shot.wav"
  113. sound.Parent = head
  114. sound.Volume = 1
  115. sound:play()
  116.  
  117. local e = Instance.new("Explosion")
  118. e.BlastRadius = 4
  119. e.Position = head.Position
  120.  
  121. s:Clone().Parent = head
  122. e.Parent = head
  123.  
  124.  
  125. end
  126. end
  127. count.Value = count.Value + 1
  128. end
  129.  
  130. wait(30)
  131.  
  132. h.WalkSpeed = oldSpeed
  133. s:Remove()
  134.  
  135.  
  136. script.Parent = nil
  137. end))
  138. Script5.Disabled = true
  139. LocalScript6.Name = "Local Gui"
  140. LocalScript6.Parent = Tool0
  141. table.insert(cors,sandbox(LocalScript6,function()
  142. local Tool = script.Parent;
  143.  
  144. enabled = true
  145. function onButton1Down(mouse)
  146. if not enabled then
  147. return
  148. end
  149.  
  150. enabled = false
  151. mouse.Icon = "rbxasset://textures\\ArrowFarCursor.png"
  152.  
  153. wait(60)
  154. mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  155. enabled = true
  156.  
  157. end
  158.  
  159. function onEquippedLocal(mouse)
  160.  
  161. if mouse == nil then
  162. print("Mouse not found")
  163. return
  164. end
  165.  
  166. mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
  167. mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  168. end
  169.  
  170. Tool.Equipped:connect(onEquippedLocal)
  171.  
  172. end))
  173. Script7.Name = "SodaScript"
  174. Script7.Parent = Tool0
  175. table.insert(cors,sandbox(Script7,function()
  176. local Tool = script.Parent;
  177.  
  178. enabled = true
  179.  
  180.  
  181.  
  182.  
  183. function onActivated()
  184. if not enabled then
  185. return
  186. end
  187.  
  188. enabled = false
  189. Tool.GripForward = Vector3.new(0.675, -0.675, -0.3)
  190. Tool.GripPos = Vector3.new(0.4, -0.9, 1.1)
  191. Tool.GripRight = Vector3.new(0.212, -0.212, 0.954)
  192. Tool.GripUp = Vector3.new(0.707, 0.707, 0)
  193.  
  194.  
  195. Tool.Handle.DrinkSound:Play()
  196.  
  197. wait(3)
  198.  
  199. local h = Tool.Parent:FindFirstChild("Humanoid")
  200. if (h ~= nil) then
  201. if (Tool.Parent:FindFirstChild("SpeedEffect") == nil) then
  202. local s = script.Parent.SpeedEffect:Clone()
  203. s.Disabled = false
  204. s.Parent = Tool.Parent
  205. end
  206. end
  207.  
  208.  
  209. Tool.GripForward = Vector3.new(-1, 0, -1)
  210. Tool.GripPos = Vector3.new(0, 0, 0.2)
  211. Tool.GripRight = Vector3.new(1, 0, 0)
  212. Tool.GripUp = Vector3.new(0,1,0)
  213.  
  214.  
  215. wait(31)
  216. enabled = true
  217.  
  218. end
  219.  
  220.  
  221.  
  222. script.Parent.Activated:connect(onActivated)
  223.  
  224. local Tool = script.Parent;
  225.  
  226. enabled = true
  227.  
  228.  
  229.  
  230.  
  231. function onEquipped()
  232. Tool.Handle.OpenSound:play()
  233. end
  234.  
  235. script.Parent.Activated:connect(onActivated)
  236. script.Parent.Equipped:connect(onEquipped)
  237.  
  238. end))
  239. for i,v in pairs(mas:GetChildren()) do
  240. v.Parent = script
  241. pcall(function() v:MakeJoints() end)
  242. end
  243. mas:Destroy()
  244. for i,v in pairs(cors) do
  245. spawn(function()
  246. pcall(v)
  247. end)
  248. end
Advertisement
Add Comment
Please, Sign In to add comment