Advertisement
AxeuerAlt

Pizza Tool

Jun 11th, 2019
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.92 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 4968
  3.  
  4. local Scripts = { function()
  5. local d=script.Parent a=true function b(e)if not a then return end a=false d.GripForward=Vector3.new(-0,-0,1)d.GripPos=Vector3.new(-1.5,-0.7,-0.3)d.GripRight=Vector3.new(-1,0,0)d.GripUp=Vector3.new(0,1,0)wait(1)d.GripForward=Vector3.new(-0,-0,1)d.GripPos=Vector3.new(-1.5,-0.7,0.2)d.GripRight=Vector3.new(-1,0,0)d.GripUp=Vector3.new(0,1,0)wait(1)d.GripForward=Vector3.new(-0,-0,1)d.GripPos=Vector3.new(-1.5,-0.7,0.6)d.GripRight=Vector3.new(-1,0,0)d.GripUp=Vector3.new(0,1,0)wait(1)d.Parent.Humanoid.Health=d.Parent.Humanoid.Health-0 script.Parent:remove()end function c(e)if e==nil then print("Mouse not found")return end e.Icon="rbxasset://textures\\ArrowCursor.png"e.Button1Down:connect(function()b(e)end)end d.Equipped:connect(c)
  6. end; function()
  7. function a(d,e)local f=Instance.new("Weld")f.Part0=d f.Part1=e local g=CFrame.new(d.Position)local h=d.CFrame:inverse()*g local i=e.CFrame:inverse()*g f.C0=h f.C1=i f.Parent=d end function b(d)if d.className=="Part"then a(script.Parent.Handle,d)d.Anchored=false else local e=d:GetChildren()for f=1,#e do b(e[f])end end end function c()b(script.Parent)end script.Parent.Equipped:connect(c)script.Parent.Unequipped:connect(c)c()
  8. end;}local ActualScripts = {}
  9. function s(var)
  10. local func = table.remove(Scripts,1)
  11. setfenv(func,setmetatable({script=var},{
  12. __index = getfenv(func),
  13. }))
  14. table.insert(ActualScripts,coroutine.wrap(func))
  15. end
  16.  
  17. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  18. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  19. function(t,f)
  20. for a,b in pairs(t) do
  21. f(a,b)
  22. end
  23. end
  24. local Types = {
  25. Color3 = Color3.new,
  26. Vector3 = Vector3.new,
  27. Vector2 = Vector2.new,
  28. UDim = UDim.new,
  29. UDim2 = UDim2.new,
  30. CFrame = CFrame.new,
  31. Rect = Rect.new,
  32. NumberRange = NumberRange.new,
  33. NumberSequence = function(...)
  34. local a = {...}
  35. local t = {}
  36. repeat
  37. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  38. until #a==0
  39. return NumberSequence.new(t)
  40. end,
  41. ColorSequence = function(...)
  42. local a = {...}
  43. local t = {}
  44. repeat
  45. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  46. until #a==0
  47. return ColorSequence.new(t)
  48. end,
  49. number = tonumber,
  50. boolean = function(a)
  51. return a=="1"
  52. end
  53. }
  54. split = function(str,sep)
  55. if not str then return end
  56. local fields = {}
  57. local ConcatNext = false
  58. str:gsub(("([^%s]+)"):format(sep),function(c)
  59. if ConcatNext == true then
  60. fields[#fields] = fields[#fields]..sep..c
  61. ConcatNext = false
  62. else
  63. fields[#fields+1] = c
  64. end
  65. if c:sub(#c)=="\\" then
  66. c = fields[#fields]
  67. fields[#fields] = c:sub(1,#c-1)
  68. ConcatNext = true
  69. end
  70. end)
  71. return fields
  72. end
  73. RemoveAndSplit = function(t)
  74. return split(table_remove(t,1),comma)
  75. end
  76. t = split(str,";")
  77. props = RemoveAndSplit(t)
  78. classes = RemoveAndSplit(t)
  79. values = split(table_remove(t,1),'|')
  80. ICList = RemoveAndSplit(t)
  81. InstanceList = {}
  82. Model = inst"Model"
  83. CurPar = Model
  84. table_foreach(t,function(ct,c)
  85. if c=="n" or c=="p" then
  86. CurPar = c=="n" and LastIns or CurPar[parnt]
  87. else
  88. ct = split(c,"|")
  89. local class = classes[tonum(table_remove(ct,1))]
  90. if class=="UnionOperation" then
  91. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  92. else
  93. LastIns = inst(class)
  94. if LastIns:IsA"Script" then
  95. s(LastIns)
  96. end
  97. end
  98.  
  99. local function SetProperty(LastIns,p,str,s)
  100. s = Types[typeof(LastIns[p])]
  101. LastIns[p] = s and s(unpack(split(str,comma))) or str
  102. end
  103.  
  104. local UnionData
  105. table_foreach(ct,function(s,p,a,str)
  106. a = p:find":"
  107. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  108. if p=="UnionData" then
  109. UnionData = split(str," ")
  110. return
  111. end
  112. if class=="UnionOperation" then
  113. LastIns[p] = str
  114. return
  115. end
  116. SetProperty(LastIns,p,str)
  117. end)
  118.  
  119. if UnionData then
  120. local LI_Data = LastIns
  121. LastIns = DecodeUnion(UnionData)
  122. table_foreach(LI_Data,function(p,str)
  123. SetProperty(LastIns,p,str)
  124. end)
  125. end
  126. table.insert(InstanceList,LastIns)
  127. LastIns[parnt] = CurPar
  128. end
  129. end)
  130. table_remove(ICList,1)
  131. table_foreach(ICList,function(a,b)
  132. b = split(b,">")
  133. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  134. end)
  135.  
  136. return Model:GetChildren()
  137. end
  138.  
  139. local Objects = Decode('Name,TextureId,Grip,GripPos,GripForward,GripRight,Color,Position,Orientation,Size,BottomSurface,TopSurface,MeshId,MeshType,C0,C1,Part0,Part1,SoundId,Volume;Part,Tool,SpecialMesh,Weld,Sound,LocalScript'
  140. ..',Script;Part|Pizza|http://www.roblox.com/asset/?id=22595979|0.55,-0.101,-0.101,-0.149,0,0.988,0,1,-0,-0.989,0,-0.149|0.55,-0.101,-0.101|-0.989,0,0.148|-0.149,0,-0.989|Handle|0.803,0.803,0.803|63.5,0.4'
  141. ..',-56.5|0,-180,0|1,0.8,1|0|http://www.roblox.com/asset/?id=22589477|http://www.roblox.com/asset/?id=22589467|5|-0.001,-0.001,0,-0.001,-0.001,1,-0.001,1,0,-1,0,-0.001|-0.001,-0.001,0,-0.001,0.999,-0.002'
  142. ..',0,0.001,0.999,1,0,-0.001|0,-0.001,-0.001,-0.001,0,-1,0,0.999,0,1,0,0|0,0,0,-0.001,0.996,-0.084,-0.001,0.083,0.996,1,0,-0.001|0,-0.001,-0.001,-0.001,0,-1,0,0.999,0,1,-0.001,-0.001|0.533,0,-0.4,-0.001,'
  143. ..'0,-1,0,0.999,0,1,-0.001,-0.001|-0.001,0,-0.534,1,-0.001,-0.001,0,0.999,0,0,-0.001,0.999|0.533,0.373,-0.001,-0.001,0,-1,0,0.999,0,1,-0.001,-0.001|-0.001,0.132,0.4,0,0.999,0,-0.001,0,-1,-1,0,0|-0.001,-0'
  144. ..'.401,-0.133,0,0.999,0,-1,0,0,0,-0.001,0.999|0,0,0.132,-1,0,0,0,0.999,0,-0.001,0,-1|0,-0.401,0.933,0,0.999,0,1,-0.001,-0.001,-0.001,0,-1|0,-0.934,0.4,0,0.999,0,0,-0.001,0.999,1,-0.001,-0.001|-0.001,-0.'
  145. ..'374,-0.534,1,-0.001,-0.001,0,0.999,0,0,-0.001,0.999|-0.534,0,-0.401,0,-0.001,0.999,0,0.999,0,-1,0,0|0,0,-0.934,1,0,-0.001,0,0.999,0,0,-0.001,0.999|0,-0.001,0,-0.001,0.997,0.063,0,-0.064,0.997,1,0,-0.0'
  146. ..'01|0.533,0,-0.4,-0.001,0.997,0.063,0,-0.064,0.997,1,0,-0.001|-0.001,0,-0.534,1,0,-0.001,0,-0.064,0.998,0,-0.999,-0.064|0.533,0.373,-0.001,-0.001,0.998,0.063,0,-0.064,0.998,1,0,-0.001|-0.001,0.132,0.4,'
  147. ..'0,-0.064,0.998,-0.001,0.998,0.063,-1,-0.001,0|0,-0.401,-0.133,0,-0.064,0.997,-1,-0.001,0,0,-0.998,-0.064|0,0,0.132,-1,-0.001,0,0,-0.064,0.998,-0.001,0.998,0.063|0,-0.401,0.933,0,-0.064,0.998,1,0,-0.00'
  148. ..'1,-0.001,0.998,0.063|0,-0.934,0.4,0,-0.064,0.997,0,-0.998,-0.064,1,0,-0.001|-0.001,-0.374,-0.534,1,0,-0.001,0,-0.064,0.998,0,-0.999,-0.064|-0.534,0,-0.401,0,-0.998,-0.064,0,-0.064,0.997,-1,-0.001,0|-0'
  149. ..'.001,0,-0.934,1,0,0,0,-0.064,0.997,0,-0.998,-0.064|0,0,-0.001,-0.001,0,-1,0,0.999,0,1,-0.001,-0.001|0,-0.401,-0.133,0,0.999,0,-1,0,0,0,-0.001,0.999|-0.001,0,0,-0.001,0.997,-0.07,0,0.069,0.997,1,0,-0.0'
  150. ..'01|0.533,0,-0.4,-0.001,0.997,-0.07,0,0.069,0.997,1,0,0|-0.001,0,-0.534,1,0,-0.001,0,0.069,0.997,0,-0.998,0.069|0.533,0.373,-0.001,-0.001,0.997,-0.07,0,0.069,0.997,1,0,-0.001|-0.001,0.132,0.4,0,0.069,0'
  151. ..'.997,-0.001,0.997,-0.07,-1,-0.001,0|0,-0.401,-0.133,0,0.069,0.997,-1,-0.001,0,0,-0.998,0.069|0,0,0.132,-1,-0.001,0,0,0.069,0.997,-0.001,0.997,-0.07|0,-0.401,0.933,0,0.069,0.997,1,0,-0.001,-0.001,0.997'
  152. ..',-0.07|0,-0.934,0.4,0,0.069,0.997,0,-0.998,0.069,1,0,-0.001|-0.001,-0.374,-0.534,1,0,-0.001,0,0.069,0.997,0,-0.998,0.069|-0.534,0,-0.401,0,-0.998,0.069,0,0.069,0.997,-1,-0.001,0|-0.001,0,-0.934,1,0,0,'
  153. ..'0,0.069,0.997,0,-0.998,0.069|0,0.132,0.4,0,0.999,0,-0.001,0,-1,-1,0,0|-0.001,0,-0.934,1,-0.001,-0.001,0,0.999,0,0,-0.001,0.999|0,-0.001,-0.001,-1,0,0,0,1,-0.001,-0.001,-0.001,-1|0,0,0,-0.031,-0.999,0.'
  154. ..'051,-0.998,0.027,-0.066,0.064,-0.054,-0.997|0,0,0,-1,0,0,0,1,-0.001,-0.001,-0.001,-1.001|0,-0.001,-0.001,-1,-0.001,0,-0.001,1,-0.001,-0.001,-0.001,-1.001|-0.001,0,-0.001,-1,-0.001,-0.001,-0.001,1,-0.0'
  155. ..'01,0,-0.001,-1.001|0,-0.001,0,-1,-0.001,-0.001,-0.001,1,-0.001,0,-0.001,-1.001|0,-0.001,-0.001,-1,-0.001,-0.001,-0.001,1,-0.001,0,-0.001,-1.001|OpenSound|http://www.roblox.com/asset/?id=22593428|1|Dri'
  156. ..'nkSound|http://www.roblox.com/asset/?id=22593942|0,0,0,-1,-0.001,-0.001,-0.001,1,-0.001,0,-0.001,-1|0,0,0,-1,-0.001,0,-0.001,1,0,-0.001,0,-1|Local Gui|Welding;0,68>17>2,68>18>2,69>17>2,69>18>2,70>17>2'
  157. ..',70>18>2,71>17>2,71>18>2,72>17>2,72>18>2,73>17>2,73>18>2,74>17>2,74>18>2,75>17>2,75>18>2,76>17>2,76>18>2,79>17>2,79>18>2,80>17>2,80>18>2,81>17>2,81>18>2;2|1:2|2:3|3:4|4:5|5:6|6:7;n;1|1:8|7:9|8:10|9:11'
  158. ..'|10:12|11:13|12:13|7:9|7:9;n;3|13:14|2:15|14:16;4|15:17|16:17;4|15:18|16:18;4|15:19|16:19;4|15:20|16:20;4|15:21|16:21;4|15:21|16:22;4|15:21|16:23;4|15:21|16:24;4|15:21|16:25;4|15:21|16:26;4|15:21|16:2'
  159. ..'7;4|15:21|16:28;4|15:21|16:29;4|15:21|16:30;4|15:21|16:31;4|15:21|16:32;4|15:33|16:33;4|15:33|16:34;4|15:33|16:35;4|15:33|16:36;4|15:33|16:37;4|15:33|16:38;4|15:33|16:39;4|15:33|16:40;4|15:33|16:41;4|'
  160. ..'15:33|16:42;4|15:33|16:43;4|15:33|16:44;4|15:45|16:45;4|15:45|16:22;4|15:45|16:23;4|15:45|16:24;4|15:45|16:25;4|15:45|16:46;4|15:45|16:27;4|15:45|16:28;4|15:45|16:29;4|15:45|16:30;4|15:45|16:31;4|15:4'
  161. ..'5|16:32;4|15:47|16:47;4|15:47|16:48;4|15:47|16:49;4|15:47|16:50;4|15:47|16:51;4|15:47|16:52;4|15:47|16:53;4|15:47|16:54;4|15:47|16:55;4|15:47|16:56;4|15:47|16:57;4|15:47|16:58;4|15:45|16:45;4|15:45|16'
  162. ..':22;4|15:45|16:23;4|15:45|16:24;4|15:45|16:59;4|15:45|16:46;4|15:45|16:27;4|15:45|16:28;4|15:45|16:29;4|15:45|16:30;4|15:45|16:31;4|15:45|16:60;4|15:61|16:61;4|15:62|16:62;4|15:63|16:63;4|15:64|16:64;'
  163. ..'4|15:65|16:65;4|15:66|16:66;4|15:67|16:67;4|15:67|16:67;4|15:65|16:65;5|1:68|19:69|20:70;5|1:71|19:72|20:70;4|15:73|16:73;4|15:74|16:74;4|15:74|16:74;p;6|1:75;7|1:76;p;')
  164. for _,Object in pairs(Objects) do
  165. Object.Parent = script and script.Parent==workspace and script or workspace
  166. end
  167. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement