Advertisement
lafur

Untitled

May 23rd, 2020
330
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.06 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 856
  3. local genv={}
  4. local Scripts = {
  5. function() Hello- user.
  6.  
  7. 1. copy the texture id on the siren head mouth
  8. 2. then paste it on the texture id!
  9. thats how it works! end;}local ActualScripts = {}
  10. function s(var)
  11. local func = table.remove(Scripts,1)
  12. setfenv(func,setmetatable({script=var,require=fake_require or require,global=genv},{
  13. __index = getfenv(func),
  14. }))
  15. table.insert(ActualScripts,coroutine.wrap(func))
  16. end
  17. 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. BrickColor = BrickColor.new,
  34. PhysicalProperties = PhysicalProperties.new,
  35. NumberSequence = function(...)
  36. local a = {...}
  37. local t = {}
  38. repeat
  39. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  40. until #a==0
  41. return NumberSequence.new(t)
  42. end,
  43. ColorSequence = function(...)
  44. local a = {...}
  45. local t = {}
  46. repeat
  47. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  48. until #a==0
  49. return ColorSequence.new(t)
  50. end,
  51. number = tonumber,
  52. boolean = function(a)
  53. return a=="1"
  54. end
  55. }
  56. split = function(str,sep)
  57. if not str then return end
  58. local fields = {}
  59. local ConcatNext = false
  60. str:gsub(("([^%s]+)"):format(sep),function(c)
  61. if ConcatNext == true then
  62. fields[#fields] = fields[#fields]..sep..c
  63. ConcatNext = false
  64. else
  65. fields[#fields+1] = c
  66. end
  67. if c:sub(#c)=="\\" then
  68. c = fields[#fields]
  69. fields[#fields] = c:sub(1,#c-1)
  70. ConcatNext = true
  71. end
  72. end)
  73. return fields
  74. end
  75. RemoveAndSplit = function(t)
  76. return split(table_remove(t,1),comma)
  77. end
  78. t = split(str,";")
  79. props = RemoveAndSplit(t)
  80. classes = RemoveAndSplit(t)
  81. values = split(table_remove(t,1),'|')
  82. ICList = RemoveAndSplit(t)
  83. InstanceList = {}
  84. Model = inst"Model"
  85. CurPar = Model
  86. table_foreach(t,function(ct,c)
  87. if c=="n" or c=="p" then
  88. CurPar = c=="n" and LastIns or CurPar[parnt]
  89. else
  90. ct = split(c,"|")
  91. local class = classes[tonum(table_remove(ct,1))]
  92. if class=="UnionOperation" then
  93. LastIns = {UsePartColor="1"}
  94. else
  95. LastIns = inst(class)
  96. if LastIns:IsA"Script" then
  97. s(LastIns)
  98. elseif LastIns:IsA("ModuleScript") then
  99. ms(LastIns)
  100. end
  101. end
  102.  
  103. local function SetProperty(LastIns,p,str,s)
  104. s = Types[typeof(LastIns[p])]
  105. if p=="CustomPhysicalProperties" then
  106. s = PhysicalProperties.new
  107. end
  108. if s then
  109. LastIns[p] = s(unpack(split(str,comma)))
  110. else
  111. LastIns[p] = str
  112. end
  113. end
  114.  
  115. local UnionData
  116. table_foreach(ct,function(s,p,a,str)
  117. a = p:find":"
  118. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  119. if p=="UnionData" then
  120. UnionData = split(str," ")
  121. return
  122. end
  123. if class=="UnionOperation" then
  124. LastIns[p] = str
  125. return
  126. end
  127. SetProperty(LastIns,p,str)
  128. end)
  129.  
  130. if UnionData then
  131. local LI_Data = LastIns
  132. LastIns = DecodeUnion(UnionData)
  133. table_foreach(LI_Data,function(p,str)
  134. SetProperty(LastIns,p,str)
  135. end)
  136. end
  137. table.insert(InstanceList,LastIns)
  138. LastIns[parnt] = CurPar
  139. end
  140. end)
  141. table_remove(ICList,1)
  142. table_foreach(ICList,function(a,b)
  143. b = split(b,">")
  144. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  145. end)
  146.  
  147. return Model:GetChildren()
  148. end
  149.  
  150. local Objects = Decode('Name,Anchored,Position,Size,Part0,C0,Part1,Orientation;Part,Model,MeshPart,WeldConstraint,Weld,Script;Part|Siren Head|Siren Head_Legs|1|-63.2123,12.1059,140.3376|6.8126,24.2118,5.473|-128.3199,14.1159'
  151. ..',28.0849,1,0,0,0,1,0,0,0,1|Siren Head_Torso|-63.2569,31.3272,140.3008|6.1827,16.0428,5.3429|Siren Head_Right Arm|-58.5546,19.2252,140.9011|5.1641,36.7421,3.218|Siren Head_Left Arm|-67.9696,19.2252,141'
  152. ..'.0061|5.7541,36.7421,3.288|H O N K E R \' S H E A D|Siren Head_Head|-63.485,42.4619,140.0229|0,5.5199,0|8.5663,11.1114,4.8297|Siren Head_Mouth|-63.2366,44.3652,140.0179|8.4913,5.3064,3.8441|INSTRU'
  153. ..'CTIONS;0,3>5>2,4>7>2,6>5>5,8>5>7,10>5>9,13>5>12,15>5>14;2|1:2;n;3|1:3|2:4|3:5|4:6;n;4;5|6:7;p;3|1:8|2:4|3:9|4:10;n;4;p;3|1:11|2:4|3:12|4:13;n;4;p;3|1:14|2:4|3:15|4:16;n;4;p;2|1:17;n;3|1:18|2:4|3:19|8:'
  154. ..'20|4:21;n;4;p;3|1:22|2:4|3:23|8:20|4:24;n;4;p;6|1:25;p;p;')
  155. for _,Object in pairs(Objects) do
  156. Object.Parent = script and script.Parent==workspace and script or workspace
  157. end
  158. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement