Advertisement
Kaemi

PizzaBox

Feb 21st, 2018
565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.61 KB | None | 0 0
  1.  
  2. --StravozPizzsa
  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. Model0 = Instance.new("Model")
  20. Part1 = Instance.new("Part")
  21. SpecialMesh2 = Instance.new("SpecialMesh")
  22. Part3 = Instance.new("Part")
  23. SpecialMesh4 = Instance.new("SpecialMesh")
  24. Part5 = Instance.new("Part")
  25. SpecialMesh6 = Instance.new("SpecialMesh")
  26. Part7 = Instance.new("Part")
  27. SpecialMesh8 = Instance.new("SpecialMesh")
  28. Part9 = Instance.new("Part")
  29. SpecialMesh10 = Instance.new("SpecialMesh")
  30. Part11 = Instance.new("Part")
  31. SpecialMesh12 = Instance.new("SpecialMesh")
  32. Part13 = Instance.new("Part")
  33. SpecialMesh14 = Instance.new("SpecialMesh")
  34. Part15 = Instance.new("Part")
  35. SpecialMesh16 = Instance.new("SpecialMesh")
  36. Fire17 = Instance.new("Fire")
  37. Script18 = Instance.new("Script")
  38. Tool19 = Instance.new("Tool")
  39. Part20 = Instance.new("Part")
  40. SpecialMesh21 = Instance.new("SpecialMesh")
  41. Sound22 = Instance.new("Sound")
  42. Sound23 = Instance.new("Sound")
  43. Sound24 = Instance.new("Sound")
  44. LocalScript25 = Instance.new("LocalScript")
  45. Animation26 = Instance.new("Animation")
  46. Model0.Name = "Pizza w/box"
  47. Model0.Parent = mas
  48. Part1.Parent = Model0
  49. Part1.BrickColor = BrickColor.new("Bright green")
  50. Part1.Anchored = true
  51. Part1.FormFactor = Enum.FormFactor.Plate
  52. Part1.Size = Vector3.new(1, 0.400000006, 1)
  53. Part1.CFrame = CFrame.new(0.5, 0.400157988, -29.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  54. Part1.Color = Color3.new(0.294118, 0.592157, 0.294118)
  55. Part1.Position = Vector3.new(0.5, 0.400157988, -29.5)
  56. Part1.Color = Color3.new(0.294118, 0.592157, 0.294118)
  57. SpecialMesh2.Parent = Part1
  58. SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=22589477"
  59. SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=22589467"
  60. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  61. Part3.Parent = Model0
  62. Part3.BrickColor = BrickColor.new("Bright green")
  63. Part3.Rotation = Vector3.new(-94.2900009, 89.9499969, 48.0099983)
  64. Part3.Anchored = true
  65. Part3.FormFactor = Enum.FormFactor.Plate
  66. Part3.Size = Vector3.new(1, 0.400000006, 1)
  67. Part3.CFrame = CFrame.new(-0.200011998, 0.399906009, -30.0000629, 1.34110223e-07, -1.49011569e-07, 0.999999583, -7.45057491e-08, 1, 1.49011626e-07, -0.999999821, -2.08616228e-07, -1.11757039e-08)
  68. Part3.Color = Color3.new(0.294118, 0.592157, 0.294118)
  69. Part3.Position = Vector3.new(-0.200011998, 0.399906009, -30.0000629)
  70. Part3.Orientation = Vector3.new(0, 90, 0)
  71. Part3.Color = Color3.new(0.294118, 0.592157, 0.294118)
  72. SpecialMesh4.Parent = Part3
  73. SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=22589477"
  74. SpecialMesh4.TextureId = "http://www.roblox.com/asset/?id=22589467"
  75. SpecialMesh4.MeshType = Enum.MeshType.FileMesh
  76. Part5.Parent = Model0
  77. Part5.BrickColor = BrickColor.new("Bright green")
  78. Part5.Rotation = Vector3.new(0, 45, 0)
  79. Part5.Anchored = true
  80. Part5.FormFactor = Enum.FormFactor.Plate
  81. Part5.Size = Vector3.new(1, 0.400000006, 1)
  82. Part5.CFrame = CFrame.new(0.200011998, 0.400193006, -29.9000244, 0.707106411, -8.94069387e-08, 0.707106292, 6.32202841e-08, 1, 8.51386801e-08, -0.70710659, -2.23517389e-07, 0.70710659)
  83. Part5.Color = Color3.new(0.294118, 0.592157, 0.294118)
  84. Part5.Position = Vector3.new(0.200011998, 0.400193006, -29.9000244)
  85. Part5.Orientation = Vector3.new(0, 45, 0)
  86. Part5.Color = Color3.new(0.294118, 0.592157, 0.294118)
  87. SpecialMesh6.Parent = Part5
  88. SpecialMesh6.MeshId = "http://www.roblox.com/asset/?id=22589477"
  89. SpecialMesh6.TextureId = "http://www.roblox.com/asset/?id=22589467"
  90. SpecialMesh6.MeshType = Enum.MeshType.FileMesh
  91. Part7.Parent = Model0
  92. Part7.BrickColor = BrickColor.new("Bright green")
  93. Part7.Rotation = Vector3.new(180, 0, 180)
  94. Part7.Anchored = true
  95. Part7.FormFactor = Enum.FormFactor.Plate
  96. Part7.Size = Vector3.new(1, 0.400000006, 1)
  97. Part7.CFrame = CFrame.new(-0.700012028, 0.400207996, -29.2999878, -0.999999404, -2.98023053e-07, 8.94066687e-08, -2.98023224e-07, 1, -2.086162e-07, 1.45286037e-07, -4.02331267e-07, -0.999999702)
  98. Part7.Color = Color3.new(0.294118, 0.592157, 0.294118)
  99. Part7.Position = Vector3.new(-0.700012028, 0.400207996, -29.2999878)
  100. Part7.Orientation = Vector3.new(0, 180, 0)
  101. Part7.Color = Color3.new(0.294118, 0.592157, 0.294118)
  102. SpecialMesh8.Parent = Part7
  103. SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=22589477"
  104. SpecialMesh8.TextureId = "http://www.roblox.com/asset/?id=22589467"
  105. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  106. Part9.Parent = Model0
  107. Part9.BrickColor = BrickColor.new("Bright green")
  108. Part9.Rotation = Vector3.new(51.3400002, -89.9300003, 128.660004)
  109. Part9.Anchored = true
  110. Part9.FormFactor = Enum.FormFactor.Plate
  111. Part9.Size = Vector3.new(1, 0.400000006, 1)
  112. Part9.CFrame = CFrame.new(0, 0.400193006, -28.8000488, -1.19208963e-07, -1.49011527e-07, -0.999999344, 4.47034267e-08, 1, -1.49011598e-07, 0.999999702, -2.53319712e-07, 1.19208991e-07)
  113. Part9.Color = Color3.new(0.294118, 0.592157, 0.294118)
  114. Part9.Position = Vector3.new(0, 0.400193006, -28.8000488)
  115. Part9.Orientation = Vector3.new(0, -90, 0)
  116. Part9.Color = Color3.new(0.294118, 0.592157, 0.294118)
  117. SpecialMesh10.Parent = Part9
  118. SpecialMesh10.MeshId = "http://www.roblox.com/asset/?id=22589477"
  119. SpecialMesh10.TextureId = "http://www.roblox.com/asset/?id=22589467"
  120. SpecialMesh10.MeshType = Enum.MeshType.FileMesh
  121. Part11.Parent = Model0
  122. Part11.BrickColor = BrickColor.new("Bright green")
  123. Part11.Rotation = Vector3.new(180, -45, 180)
  124. Part11.Anchored = true
  125. Part11.FormFactor = Enum.FormFactor.Plate
  126. Part11.Size = Vector3.new(1, 0.400000006, 1)
  127. Part11.CFrame = CFrame.new(-0.5, 0.400200009, -28.9000244, -0.707106411, -2.08616143e-07, -0.707106411, -9.30226349e-08, 1, -2.12304755e-07, 0.70710665, -2.83122034e-07, -0.707106471)
  128. Part11.Color = Color3.new(0.294118, 0.592157, 0.294118)
  129. Part11.Position = Vector3.new(-0.5, 0.400200009, -28.9000244)
  130. Part11.Orientation = Vector3.new(0, -135, 0)
  131. Part11.Color = Color3.new(0.294118, 0.592157, 0.294118)
  132. SpecialMesh12.Parent = Part11
  133. SpecialMesh12.MeshId = "http://www.roblox.com/asset/?id=22589477"
  134. SpecialMesh12.TextureId = "http://www.roblox.com/asset/?id=22589467"
  135. SpecialMesh12.MeshType = Enum.MeshType.FileMesh
  136. Part13.Parent = Model0
  137. Part13.BrickColor = BrickColor.new("Bright green")
  138. Part13.Rotation = Vector3.new(180, 30, 180)
  139. Part13.Anchored = true
  140. Part13.FormFactor = Enum.FormFactor.Plate
  141. Part13.Size = Vector3.new(1, 0.400000006, 1)
  142. Part13.CFrame = CFrame.new(-0.600036979, 0.400193006, -29.7000732, -0.866024852, -2.83121892e-07, 0.499999791, -3.94880772e-07, 1, -4.17805666e-08, -0.499999732, -4.76837045e-07, -0.866025388)
  143. Part13.Color = Color3.new(0.294118, 0.592157, 0.294118)
  144. Part13.Position = Vector3.new(-0.600036979, 0.400193006, -29.7000732)
  145. Part13.Orientation = Vector3.new(0, 150, 0)
  146. Part13.Color = Color3.new(0.294118, 0.592157, 0.294118)
  147. SpecialMesh14.Parent = Part13
  148. SpecialMesh14.MeshId = "http://www.roblox.com/asset/?id=22589477"
  149. SpecialMesh14.TextureId = "http://www.roblox.com/asset/?id=22589467"
  150. SpecialMesh14.MeshType = Enum.MeshType.FileMesh
  151. Part15.Name = "pBox"
  152. Part15.Parent = Model0
  153. Part15.Anchored = true
  154. Part15.CanCollide = false
  155. Part15.FormFactor = Enum.FormFactor.Symmetric
  156. Part15.Size = Vector3.new(3, 3, 2)
  157. Part15.CFrame = CFrame.new(0, 1.50002599, -29.2000122, 0.999999702, -1.49011569e-07, -3.72527964e-08, 1.49011612e-07, 1, 4.17232485e-07, -6.33298356e-08, -5.06639424e-07, 0.999999881)
  158. Part15.BottomSurface = Enum.SurfaceType.Smooth
  159. Part15.TopSurface = Enum.SurfaceType.Smooth
  160. Part15.Position = Vector3.new(0, 1.50002599, -29.2000122)
  161. SpecialMesh16.Parent = Part15
  162. SpecialMesh16.MeshId = "http://www.roblox.com/asset/?id=17659006"
  163. SpecialMesh16.Scale = Vector3.new(1.02999997, 1.02999997, 1.02999997)
  164. SpecialMesh16.TextureId = "http://www.roblox.com/asset/?id=17659000"
  165. SpecialMesh16.MeshType = Enum.MeshType.FileMesh
  166. SpecialMesh16.Scale = Vector3.new(1.02999997, 1.02999997, 1.02999997)
  167. Fire17.Parent = Part15
  168. Fire17.Size = 30
  169. Fire17.Color = Color3.new(0, 0, 1)
  170. Fire17.Enabled = false
  171. Fire17.Heat = 25
  172. Fire17.SecondaryColor = Color3.new(0, 0.898039, 1)
  173. Fire17.Color = Color3.new(0, 0, 1)
  174. Script18.Name = "Spread"
  175. Script18.Parent = Fire17
  176. table.insert(cors,sandbox(Script18,function()
  177. function Spread(part)
  178. check = part:findFirstChild("Fire")
  179. if check == nil then
  180. script.Parent:Clone().Parent = part
  181.  
  182. elseif check ~= nil then
  183. check.Size = check.Size + 1
  184. check.Heat = check.Heat +1
  185. end
  186. end
  187.  
  188.  
  189. script.Parent.Parent.Touched:connect(Spread)
  190.  
  191. end))
  192. Tool19.Name = "Stravos Pizza"
  193. Tool19.Parent = Model0
  194. Tool19.TextureId = "rbxassetid://1429670901"
  195. Tool19.GripForward = Vector3.new(-0.988840878, -0, 0.148976028)
  196. Tool19.GripPos = Vector3.new(0.550000012, -0.100000001, -0.100000001)
  197. Tool19.GripRight = Vector3.new(-0.148976028, -0, -0.988840878)
  198. Tool19.ToolTip = "eat for free death"
  199. Part20.Name = "Handle"
  200. Part20.Parent = Tool19
  201. Part20.BrickColor = BrickColor.new("Mid gray")
  202. Part20.Rotation = Vector3.new(0, -38.4799995, 0)
  203. Part20.FormFactor = Enum.FormFactor.Plate
  204. Part20.Size = Vector3.new(1, 0.800000012, 1)
  205. Part20.CFrame = CFrame.new(0.377597213, 0.409709692, -29.0861263, 0.782801986, 0, -0.622271001, 0, 1, 0, 0.622271001, 0, 0.782801986)
  206. Part20.BottomSurface = Enum.SurfaceType.Smooth
  207. Part20.TopSurface = Enum.SurfaceType.Smooth
  208. Part20.Color = Color3.new(0.803922, 0.803922, 0.803922)
  209. Part20.Position = Vector3.new(0.377597213, 0.409709692, -29.0861263)
  210. Part20.Orientation = Vector3.new(0, -38.4799995, 0)
  211. Part20.Color = Color3.new(0.803922, 0.803922, 0.803922)
  212. SpecialMesh21.Parent = Part20
  213. SpecialMesh21.MeshId = "rbxassetid://22589477"
  214. SpecialMesh21.TextureId = "rbxassetid://22589467"
  215. SpecialMesh21.VertexColor = Vector3.new(0, 1, 0)
  216. SpecialMesh21.MeshType = Enum.MeshType.FileMesh
  217. Sound22.Name = "OpenSound"
  218. Sound22.Parent = Part20
  219. Sound22.SoundId = "rbxassetid://22593428"
  220. Sound22.Volume = 1
  221. Sound23.Name = "Eat"
  222. Sound23.Parent = Part20
  223. Sound23.SoundId = "rbxassetid://22593942"
  224. Sound23.Volume = 2
  225. Sound24.Name = "Ded"
  226. Sound24.Parent = Part20
  227. Sound24.SoundId = "rbxassetid://304063043"
  228. Sound24.Volume = 1
  229. LocalScript25.Name = "AnimScript"
  230. LocalScript25.Parent = Tool19
  231. table.insert(cors,sandbox(LocalScript25,function()
  232. local Tool = script.Parent
  233. local humanoid = nil
  234. local drinker = nil
  235. local con = nil
  236. local enabled = false
  237. local uses = 0
  238.  
  239. function onEquipped(mouse)
  240.  
  241. Tool.Handle.OpenSound:play()
  242. humanoid = Tool.Parent:FindFirstChild("Humanoid")
  243. if humanoid ~= nil then
  244. drinker = humanoid:LoadAnimation(Tool.Drink)
  245. end
  246. con = mouse.Button1Down:connect(function() onButton1Down(mouse) end)
  247.  
  248. end
  249.  
  250. function onUnequipped(mouse)
  251.  
  252. humanoid = nil
  253. if drinker ~= nil then
  254. drinker:remove()
  255. drinker = nil
  256. end
  257. if con ~= nil then
  258. con:disconnect()
  259. end
  260.  
  261. end
  262.  
  263. function onButton1Down(mouse)
  264.  
  265. if enabled then
  266. return
  267. end
  268.  
  269. enabled = true
  270.  
  271.  
  272. drinker:Play()
  273. Tool.Handle.Eat:Play()
  274. wait(1)
  275. local chance = math.random(1,10000)
  276. if chance == 500 then
  277. Tool.Parent.Humanoid.Health = Tool.Parent.Humanoid.Health - 99.9
  278. uses = uses + 1
  279. enabled = true
  280. else
  281. Tool.Parent:BreakJoints()
  282. Tool.Handle.Ded:Play()
  283. uses = uses + 1
  284.  
  285. enabled = false
  286. end
  287.  
  288. while wait() do
  289. if uses == 1 then
  290. script.Parent:Destroy()
  291. end
  292. end
  293.  
  294. end
  295.  
  296. Tool.Equipped:connect(onEquipped)
  297. Tool.Unequipped:connect(onUnequipped)
  298.  
  299. end))
  300. Animation26.Name = "Drink"
  301. Animation26.Parent = Tool19
  302. Animation26.AnimationId = "http://www.roblox.com/Asset?ID=94700140"
  303. for i,v in pairs(mas:GetChildren()) do
  304. v.Parent = workspace
  305. pcall(function() v:MakeJoints() end)
  306. end
  307. mas:Destroy()
  308. for i,v in pairs(cors) do
  309. spawn(function()
  310. pcall(v)
  311. end)
  312. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement