Advertisement
AxeuerAlt

Playlist For Vis

Jul 5th, 2019
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 225
  3.  
  4. local Scripts = { function()
  5. a="http://www.roblox.com/asset/?id=723652641"b="http://www.roblox.com/asset/?id=1564523997"c="http://www.roblox.com/asset/?id=247971190"d="http://www.roblox.com/asset/?id=531165030"local e=Instance.new("Sound")e.Archivable=true e.Parent=script.Parent e.Pitch=1 e.Volume=1 e.Looped=false e.Name="Player"while(true)do e.SoundId=a e:play()wait(130)e.SoundId=b e:play()wait(130)e.SoundId=c e:play()wait(130)e.SoundId=d e:play()wait(130)end
  6. end;}local ActualScripts = {}
  7. function s(var)
  8. local func = table.remove(Scripts,1)
  9. setfenv(func,setmetatable({script=var},{
  10. __index = getfenv(func),
  11. }))
  12. table.insert(ActualScripts,coroutine.wrap(func))
  13. end
  14.  
  15. local Decode = function(str,t,props,classes,values,ICList,Model,CurPar,LastIns,split,RemoveAndSplit,InstanceList)
  16. local tonum,table_remove,inst,parnt,comma,table_foreach = tonumber,table.remove,Instance.new,"Parent",",",
  17. function(t,f)
  18. for a,b in pairs(t) do
  19. f(a,b)
  20. end
  21. end
  22. local Types = {
  23. Color3 = Color3.new,
  24. Vector3 = Vector3.new,
  25. Vector2 = Vector2.new,
  26. UDim = UDim.new,
  27. UDim2 = UDim2.new,
  28. CFrame = CFrame.new,
  29. Rect = Rect.new,
  30. NumberRange = NumberRange.new,
  31. NumberSequence = function(...)
  32. local a = {...}
  33. local t = {}
  34. repeat
  35. t[#t+1] = NumberSequenceKeypoint.new(table_remove(a,1),table_remove(a,1),table_remove(a,1))
  36. until #a==0
  37. return NumberSequence.new(t)
  38. end,
  39. ColorSequence = function(...)
  40. local a = {...}
  41. local t = {}
  42. repeat
  43. t[#t+1] = ColorSequenceKeypoint.new(table_remove(a,1),Color3.new(table_remove(a,1),table_remove(a,1),table_remove(a,1)))
  44. until #a==0
  45. return ColorSequence.new(t)
  46. end,
  47. number = tonumber,
  48. boolean = function(a)
  49. return a=="1"
  50. end
  51. }
  52. split = function(str,sep)
  53. if not str then return end
  54. local fields = {}
  55. local ConcatNext = false
  56. str:gsub(("([^%s]+)"):format(sep),function(c)
  57. if ConcatNext == true then
  58. fields[#fields] = fields[#fields]..sep..c
  59. ConcatNext = false
  60. else
  61. fields[#fields+1] = c
  62. end
  63. if c:sub(#c)=="\\" then
  64. c = fields[#fields]
  65. fields[#fields] = c:sub(1,#c-1)
  66. ConcatNext = true
  67. end
  68. end)
  69. return fields
  70. end
  71. RemoveAndSplit = function(t)
  72. return split(table_remove(t,1),comma)
  73. end
  74. t = split(str,";")
  75. props = RemoveAndSplit(t)
  76. classes = RemoveAndSplit(t)
  77. values = split(table_remove(t,1),'|')
  78. ICList = RemoveAndSplit(t)
  79. InstanceList = {}
  80. Model = inst"Model"
  81. CurPar = Model
  82. table_foreach(t,function(ct,c)
  83. if c=="n" or c=="p" then
  84. CurPar = c=="n" and LastIns or CurPar[parnt]
  85. else
  86. ct = split(c,"|")
  87. local class = classes[tonum(table_remove(ct,1))]
  88. if class=="UnionOperation" then
  89. LastIns = {Locked="true",Anchored="true",UsePartColor="true"}
  90. else
  91. LastIns = inst(class)
  92. if LastIns:IsA"Script" then
  93. s(LastIns)
  94. end
  95. end
  96.  
  97. local function SetProperty(LastIns,p,str,s)
  98. s = Types[typeof(LastIns[p])]
  99. LastIns[p] = s and s(unpack(split(str,comma))) or str
  100. end
  101.  
  102. local UnionData
  103. table_foreach(ct,function(s,p,a,str)
  104. a = p:find":"
  105. p,str = props[tonum(p:sub(1,a-1))],values[tonum(p:sub(a+1))]
  106. if p=="UnionData" then
  107. UnionData = split(str," ")
  108. return
  109. end
  110. if class=="UnionOperation" then
  111. LastIns[p] = str
  112. return
  113. end
  114. SetProperty(LastIns,p,str)
  115. end)
  116.  
  117. if UnionData then
  118. local LI_Data = LastIns
  119. LastIns = DecodeUnion(UnionData)
  120. table_foreach(LI_Data,function(p,str)
  121. SetProperty(LastIns,p,str)
  122. end)
  123. end
  124. table.insert(InstanceList,LastIns)
  125. LastIns[parnt] = CurPar
  126. end
  127. end)
  128. table_remove(ICList,1)
  129. table_foreach(ICList,function(a,b)
  130. b = split(b,">")
  131. InstanceList[tonum(b[1])][props[tonum(b[2])]] = InstanceList[tonum(b[3])]
  132. end)
  133.  
  134. return Model:GetChildren()
  135. end
  136.  
  137. local Objects = Decode('Name,Transparency,Position,Orientation,Size,BottomSurface,TopSurface;Part,Model,Script;Part|Playlist For Vis|1|-123.6,17.5,-108.1|-90,0,0|4,0.199,2|0|Playlist -V.1.3.9- [Fixed];0;2;n;1|1:2|2:3|3:4|4:5'
  138. ..'|5:6|6:7|7:7;n;3|1:8;p;p;')
  139. for _,Object in pairs(Objects) do
  140. Object.Parent = script and script.Parent==workspace and script or workspace
  141. end
  142. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement