VoidScript

eat

Sep 3rd, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.34 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. BlockMesh2 = Instance.new("BlockMesh")
  22. StringValue3 = Instance.new("StringValue")
  23. Part4 = Instance.new("Part")
  24. BlockMesh5 = Instance.new("BlockMesh")
  25. Sound6 = Instance.new("Sound")
  26. StringValue7 = Instance.new("StringValue")
  27. Part8 = Instance.new("Part")
  28. BlockMesh9 = Instance.new("BlockMesh")
  29. StringValue10 = Instance.new("StringValue")
  30. Part11 = Instance.new("Part")
  31. CylinderMesh12 = Instance.new("CylinderMesh")
  32. StringValue13 = Instance.new("StringValue")
  33. Part14 = Instance.new("Part")
  34. BlockMesh15 = Instance.new("BlockMesh")
  35. StringValue16 = Instance.new("StringValue")
  36. Part17 = Instance.new("Part")
  37. CylinderMesh18 = Instance.new("CylinderMesh")
  38. StringValue19 = Instance.new("StringValue")
  39. Part20 = Instance.new("Part")
  40. BlockMesh21 = Instance.new("BlockMesh")
  41. StringValue22 = Instance.new("StringValue")
  42. Part23 = Instance.new("Part")
  43. SpecialMesh24 = Instance.new("SpecialMesh")
  44. StringValue25 = Instance.new("StringValue")
  45. Part26 = Instance.new("Part")
  46. CylinderMesh27 = Instance.new("CylinderMesh")
  47. StringValue28 = Instance.new("StringValue")
  48. Script29 = Instance.new("Script")
  49. StringValue30 = Instance.new("StringValue")
  50. Script31 = Instance.new("Script")
  51. StringValue32 = Instance.new("StringValue")
  52. Tool0.Name = "Sandvich"
  53. Tool0.Parent = mas
  54. Tool0.GripForward = Vector3.new(-0.976163507, 0, -0.217036337)
  55. Tool0.GripPos = Vector3.new(0.300000012, 0, 0)
  56. Tool0.GripRight = Vector3.new(0.217036337, -0, -0.976163507)
  57. Part1.Name = "Handle3"
  58. Part1.Parent = Tool0
  59. Part1.BrickColor = BrickColor.new("Bright yellow")
  60. Part1.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  61. Part1.FormFactor = Enum.FormFactor.Plate
  62. Part1.Size = Vector3.new(1, 0.400000006, 1)
  63. Part1.CFrame = CFrame.new(1306.77722, 159.278763, 45.2597885, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  64. Part1.BottomSurface = Enum.SurfaceType.Smooth
  65. Part1.TopSurface = Enum.SurfaceType.Smooth
  66. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  67. Part1.Position = Vector3.new(1306.77722, 159.278763, 45.2597885)
  68. Part1.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  69. Part1.Color = Color3.new(0.960784, 0.803922, 0.188235)
  70. BlockMesh2.Parent = Part1
  71. BlockMesh2.Scale = Vector3.new(1.70000005, 0.100000001, 1.5)
  72. BlockMesh2.Scale = Vector3.new(1.70000005, 0.100000001, 1.5)
  73. StringValue3.Name = "Te"
  74. StringValue3.Parent = Part1
  75. Part4.Name = "Handle"
  76. Part4.Parent = Tool0
  77. Part4.BrickColor = BrickColor.new("Pastel yellow")
  78. Part4.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  79. Part4.FormFactor = Enum.FormFactor.Plate
  80. Part4.Size = Vector3.new(1, 0.400000006, 1)
  81. Part4.CFrame = CFrame.new(1306.7771, 159.068756, 45.2598038, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  82. Part4.BottomSurface = Enum.SurfaceType.Smooth
  83. Part4.TopSurface = Enum.SurfaceType.Smooth
  84. Part4.Color = Color3.new(1, 1, 0.8)
  85. Part4.Position = Vector3.new(1306.7771, 159.068756, 45.2598038)
  86. Part4.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  87. Part4.Color = Color3.new(1, 1, 0.8)
  88. BlockMesh5.Parent = Part4
  89. BlockMesh5.Scale = Vector3.new(1.60000002, 0.5, 1.60000002)
  90. BlockMesh5.Scale = Vector3.new(1.60000002, 0.5, 1.60000002)
  91. Sound6.Name = "DrinkSound"
  92. Sound6.Parent = Part4
  93. Sound6.Pitch = 0.55000001192093
  94. Sound6.SoundId = "http://www.roblox.com/asset/?id=12544690"
  95. Sound6.Volume = 1
  96. StringValue7.Name = "Te"
  97. StringValue7.Parent = Part4
  98. Part8.Name = "Handle2"
  99. Part8.Parent = Tool0
  100. Part8.BrickColor = BrickColor.new("Pastel orange")
  101. Part8.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  102. Part8.FormFactor = Enum.FormFactor.Plate
  103. Part8.Size = Vector3.new(1, 0.400000006, 1)
  104. Part8.CFrame = CFrame.new(1306.77722, 159.21875, 45.2597923, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  105. Part8.BottomSurface = Enum.SurfaceType.Smooth
  106. Part8.TopSurface = Enum.SurfaceType.Smooth
  107. Part8.Color = Color3.new(1, 0.788235, 0.788235)
  108. Part8.Position = Vector3.new(1306.77722, 159.21875, 45.2597923)
  109. Part8.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  110. Part8.Color = Color3.new(1, 0.788235, 0.788235)
  111. BlockMesh9.Parent = Part8
  112. BlockMesh9.Scale = Vector3.new(1.60000002, 0.25, 1.70000005)
  113. BlockMesh9.Scale = Vector3.new(1.60000002, 0.25, 1.70000005)
  114. StringValue10.Name = "Te"
  115. StringValue10.Parent = Part8
  116. Part11.Name = "Handle4"
  117. Part11.Parent = Tool0
  118. Part11.BrickColor = BrickColor.new("Bright red")
  119. Part11.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  120. Part11.FormFactor = Enum.FormFactor.Plate
  121. Part11.Size = Vector3.new(1, 0.400000006, 1)
  122. Part11.CFrame = CFrame.new(1306.46362, 159.338989, 45.0966568, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  123. Part11.BottomSurface = Enum.SurfaceType.Smooth
  124. Part11.TopSurface = Enum.SurfaceType.Smooth
  125. Part11.Color = Color3.new(0.768628, 0.156863, 0.109804)
  126. Part11.Position = Vector3.new(1306.46362, 159.338989, 45.0966568)
  127. Part11.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  128. Part11.Color = Color3.new(0.768628, 0.156863, 0.109804)
  129. CylinderMesh12.Parent = Part11
  130. CylinderMesh12.Scale = Vector3.new(0.699999988, 0.25, 0.699999988)
  131. CylinderMesh12.Scale = Vector3.new(0.699999988, 0.25, 0.699999988)
  132. StringValue13.Name = "Te"
  133. StringValue13.Parent = Part11
  134. Part14.Name = "Handle5"
  135. Part14.Parent = Tool0
  136. Part14.BrickColor = BrickColor.new("Bright green")
  137. Part14.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  138. Part14.FormFactor = Enum.FormFactor.Plate
  139. Part14.Size = Vector3.new(1, 0.400000006, 1)
  140. Part14.CFrame = CFrame.new(1306.77734, 159.333755, 45.2597847, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  141. Part14.BottomSurface = Enum.SurfaceType.Smooth
  142. Part14.TopSurface = Enum.SurfaceType.Smooth
  143. Part14.Color = Color3.new(0.294118, 0.592157, 0.294118)
  144. Part14.Position = Vector3.new(1306.77734, 159.333755, 45.2597847)
  145. Part14.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  146. Part14.Color = Color3.new(0.294118, 0.592157, 0.294118)
  147. BlockMesh15.Parent = Part14
  148. BlockMesh15.Scale = Vector3.new(1.70000005, 0.0500000007, 1.70000005)
  149. BlockMesh15.Scale = Vector3.new(1.70000005, 0.0500000007, 1.70000005)
  150. StringValue16.Name = "Te"
  151. StringValue16.Parent = Part14
  152. Part17.Name = "Handle6"
  153. Part17.Parent = Tool0
  154. Part17.BrickColor = BrickColor.new("Brick yellow")
  155. Part17.Rotation = Vector3.new(-148.800003, -15.0900002, 166.509995)
  156. Part17.FormFactor = Enum.FormFactor.Plate
  157. Part17.Size = Vector3.new(1, 0.800000012, 1)
  158. Part17.CFrame = CFrame.new(1306.63196, 159.568878, 45.4630241, -0.938882291, -0.225208953, -0.260349393, -0.33066228, 0.800320506, 0.500149488, 0.0957248211, 0.555669188, -0.825874805)
  159. Part17.BottomSurface = Enum.SurfaceType.Smooth
  160. Part17.TopSurface = Enum.SurfaceType.Smooth
  161. Part17.Color = Color3.new(0.843137, 0.772549, 0.603922)
  162. Part17.Position = Vector3.new(1306.63196, 159.568878, 45.4630241)
  163. Part17.Orientation = Vector3.new(-30.0100002, -162.5, -22.4500008)
  164. Part17.Color = Color3.new(0.843137, 0.772549, 0.603922)
  165. CylinderMesh18.Parent = Part17
  166. CylinderMesh18.Scale = Vector3.new(0.0500000007, 1, 0.0500000007)
  167. CylinderMesh18.Scale = Vector3.new(0.0500000007, 1, 0.0500000007)
  168. StringValue19.Name = "Te"
  169. StringValue19.Parent = Part17
  170. Part20.Name = "Top"
  171. Part20.Parent = Tool0
  172. Part20.BrickColor = BrickColor.new("Pastel yellow")
  173. Part20.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  174. Part20.FormFactor = Enum.FormFactor.Plate
  175. Part20.Size = Vector3.new(1, 0.400000006, 1)
  176. Part20.CFrame = CFrame.new(1306.77734, 159.448761, 45.2597771, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  177. Part20.BottomSurface = Enum.SurfaceType.Smooth
  178. Part20.TopSurface = Enum.SurfaceType.Smooth
  179. Part20.Color = Color3.new(1, 1, 0.8)
  180. Part20.Position = Vector3.new(1306.77734, 159.448761, 45.2597771)
  181. Part20.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  182. Part20.Color = Color3.new(1, 1, 0.8)
  183. BlockMesh21.Parent = Part20
  184. BlockMesh21.Scale = Vector3.new(1.60000002, 0.5, 1.60000002)
  185. BlockMesh21.Scale = Vector3.new(1.60000002, 0.5, 1.60000002)
  186. StringValue22.Name = "Te"
  187. StringValue22.Parent = Part20
  188. Part23.Name = "Handle7"
  189. Part23.Parent = Tool0
  190. Part23.BrickColor = BrickColor.new("Grime")
  191. Part23.Rotation = Vector3.new(-148.800003, -15.0900002, 166.509995)
  192. Part23.FormFactor = Enum.FormFactor.Plate
  193. Part23.Size = Vector3.new(1, 0.400000006, 1)
  194. Part23.CFrame = CFrame.new(1306.5802, 159.752945, 45.5908279, -0.938882291, -0.225208953, -0.260349393, -0.33066228, 0.800320506, 0.500149488, 0.0957248211, 0.555669188, -0.825874805)
  195. Part23.BottomSurface = Enum.SurfaceType.Smooth
  196. Part23.TopSurface = Enum.SurfaceType.Smooth
  197. Part23.Color = Color3.new(0.498039, 0.556863, 0.392157)
  198. Part23.Position = Vector3.new(1306.5802, 159.752945, 45.5908279)
  199. Part23.Orientation = Vector3.new(-30.0100002, -162.5, -22.4500008)
  200. Part23.Color = Color3.new(0.498039, 0.556863, 0.392157)
  201. SpecialMesh24.Parent = Part23
  202. SpecialMesh24.Scale = Vector3.new(0.25, 0.75, 0.5)
  203. SpecialMesh24.MeshType = Enum.MeshType.Sphere
  204. SpecialMesh24.Scale = Vector3.new(0.25, 0.75, 0.5)
  205. StringValue25.Name = "Te"
  206. StringValue25.Parent = Part23
  207. Part26.Name = "Handle42"
  208. Part26.Parent = Tool0
  209. Part26.BrickColor = BrickColor.new("Bright red")
  210. Part26.Rotation = Vector3.new(-179.990005, -17.5200005, -179.949997)
  211. Part26.FormFactor = Enum.FormFactor.Plate
  212. Part26.Size = Vector3.new(1, 0.400000006, 1)
  213. Part26.CFrame = CFrame.new(1307.09094, 159.338516, 45.4229126, -0.953597844, 0.000793259533, -0.301083595, 0.00077729387, 0.999999642, 0.000172820452, 0.301083624, -6.92292379e-05, -0.953598082)
  214. Part26.BottomSurface = Enum.SurfaceType.Smooth
  215. Part26.TopSurface = Enum.SurfaceType.Smooth
  216. Part26.Color = Color3.new(0.768628, 0.156863, 0.109804)
  217. Part26.Position = Vector3.new(1307.09094, 159.338516, 45.4229126)
  218. Part26.Orientation = Vector3.new(-0.00999999978, -162.479996, 0.0399999991)
  219. Part26.Color = Color3.new(0.768628, 0.156863, 0.109804)
  220. CylinderMesh27.Parent = Part26
  221. CylinderMesh27.Scale = Vector3.new(0.699999988, 0.25, 0.699999988)
  222. CylinderMesh27.Scale = Vector3.new(0.699999988, 0.25, 0.699999988)
  223. StringValue28.Name = "Te"
  224. StringValue28.Parent = Part26
  225. Script29.Name = "Welds"
  226. Script29.Parent = Tool0
  227. table.insert(cors,sandbox(Script29,function()
  228. Tool=script.Parent
  229. Handle1 = script.Parent.Handle
  230. Handle2 = script.Parent.Handle2
  231. Handle3 = script.Parent.Handle3
  232. Handle4 = script.Parent.Handle4
  233. Handle5 = script.Parent.Handle5
  234. Handle6 = script.Parent.Handle6
  235. Handle7 = script.Parent.Handle6
  236. Handle8 = script.Parent.Handle7
  237. Top=script.Parent.Top
  238.  
  239. function equipped()
  240.  
  241. Handle1:BreakJoints()
  242. Handle8:BreakJoints()
  243.  
  244. wait(.01)
  245.  
  246. Weld1 = Instance.new("Weld")
  247. Weld2 = Instance.new("Weld")
  248. Weld3 = Instance.new("Weld")
  249. Weld4 = Instance.new("Weld")
  250. Weld5 = Instance.new("Weld")
  251. Weld6 = Instance.new("Weld")
  252. Weld7 = Instance.new("Weld")
  253. Weld8 = Instance.new("Weld")
  254. Weld9=Instance.new("Weld")
  255.  
  256. Weld1.Parent=Handle1
  257. Weld1.Part0=Handle1
  258. Weld1.Part1=Handle2
  259. Weld1.C0=CFrame.new(0,.15,0)
  260.  
  261. Weld2.Parent=Handle1
  262. Weld2.Part0=Handle1
  263. Weld2.Part1=Handle3
  264. Weld2.C0=CFrame.new(0,.21,0)
  265.  
  266. Weld3.Parent=Handle1
  267. Weld3.Part0=Handle1
  268. Weld3.Part1=Handle4
  269. Weld3.C0=CFrame.new(0.25,.27,0.25)
  270.  
  271. Weld4.Parent=Handle1
  272. Weld4.Part0=Handle1
  273. Weld4.Part1=Tool.Handle42
  274. Weld4.C0=CFrame.new(-.25,.27,-0.25)
  275.  
  276. Weld5.Parent=Handle1
  277. Weld5.Part0=Handle1
  278. Weld5.Part1=Tool.Handle5
  279. Weld5.C0=CFrame.new(0,.265,0)
  280.  
  281. Weld6.Parent=Handle1
  282. Weld6.Part0=Handle1
  283. Weld6.Part1=Top
  284. Weld6.C0=CFrame.new(0,.38,0)
  285.  
  286. Weld7.Parent=Handle1
  287. Weld7.Part0=Handle1
  288. Weld7.Part1=Handle6
  289. Weld7.C0=CFrame.new(0.2,.5,-.15)*CFrame.fromEulerAnglesXYZ(-math.pi/6,0,-math.pi/8)
  290.  
  291. Weld8.Parent=Handle1
  292. Weld8.Part0=Handle6
  293. Weld8.Part1=Handle8
  294. Weld8.C0=CFrame.new(0,.23,0)
  295.  
  296. end
  297. Tool.AncestryChanged:connect(equipped)
  298. end))
  299. StringValue30.Name = "Te"
  300. StringValue30.Parent = Script29
  301. Script31.Name = "SandwichScript"
  302. Script31.Parent = Tool0
  303. table.insert(cors,sandbox(Script31,function()
  304. local Tool = script.Parent;
  305.  
  306. enabled = true
  307.  
  308. Uses=3
  309.  
  310. function onActivated()
  311. if not enabled then
  312. return
  313. end
  314.  
  315. enabled = false
  316. Tool.GripForward = Vector3.new(-0.976,0,-0.217)
  317. Tool.GripPos = Vector3.new(0.4,-.6,1)
  318. Tool.GripRight = Vector3.new(0.217,0, 0.976)
  319. Tool.GripUp = Vector3.new(0,1,0)
  320.  
  321.  
  322. Tool.Handle.DrinkSound:Play()
  323.  
  324. wait(.1)
  325.  
  326. local h = Tool.Parent:FindFirstChild("Humanoid")
  327. if (h ~= nil) then
  328. if (h.MaxHealth > h.Health + 20) then
  329. h.Health = h.Health + 10
  330. else
  331. h.Health = h.MaxHealth
  332. end
  333. end
  334.  
  335. wait(.4)
  336.  
  337. local h = Tool.Parent:FindFirstChild("Humanoid")
  338. if (h ~= nil) then
  339. if (h.MaxHealth > h.Health + 20) then
  340. h.Health = h.Health + 7.5
  341. else
  342. h.Health = h.MaxHealth
  343. end
  344. end
  345.  
  346. wait(.35)
  347.  
  348. local h = Tool.Parent:FindFirstChild("Humanoid")
  349. if (h ~= nil) then
  350. if (h.MaxHealth > h.Health + 20) then
  351. h.Health = h.Health + 7.5
  352. else
  353. h.Health = h.MaxHealth
  354. end
  355. end
  356.  
  357. wait(.4)
  358.  
  359. Tool.GripForward = Vector3.new(-0.976,0,-0.217)
  360. Tool.GripPos = Vector3.new(0.3,0,0)
  361. Tool.GripRight = Vector3.new(0.217,0,-0.976)
  362. Tool.GripUp = Vector3.new(0,1,0)
  363.  
  364. Uses=Uses-1
  365.  
  366. wait(2)
  367.  
  368.  
  369. enabled = true
  370.  
  371. end
  372.  
  373. function onEquipped()
  374. Tool.Handle.OpenSound:play()
  375. end
  376.  
  377. script.Parent.Activated:connect(onActivated)
  378. script.Parent.Equipped:connect(onEquipped)
  379.  
  380. while true do
  381. if Uses==0 then
  382. Tool.Parent=nil
  383. end
  384. Tool.Name="Sandvich("..Uses..")"
  385. wait()
  386. end
  387.  
  388. end))
  389. StringValue32.Name = "Te"
  390. StringValue32.Parent = Script31
  391. for i,v in pairs(mas:GetChildren()) do
  392. v.Parent = game:GetService("Players").LocalPlayer.Backpack
  393. pcall(function() v:MakeJoints() end)
  394. end
  395. mas:Destroy()
  396. for i,v in pairs(cors) do
  397. spawn(function()
  398. pcall(v)
  399. end)
  400. end
Add Comment
Please, Sign In to add comment