Advertisement
kirbymass72

sandvich

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