Advertisement
AxeuerAlt

TV

Jul 9th, 2019
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.29 KB | None | 0 0
  1. -- Converted using Mokiros's Model to Script plugin
  2. -- Converted string size: 5557
  3.  
  4. local Scripts = { function()
  5. local d=script.Parent local e=d.Parent local f=d.Buttons local g=d.Display local h=g.Body local i=game:GetService("ContentProvider")local j=game:GetService("Lighting")local k=Instance.new("Sound",e.Parent)k.Pitch=1.0 k.Volume=0.5 k.Looped=true local l=f.Home local m=f.Go local n={h.Home,h.Music,h.Photos,h.Settings}local o=n[1].Bar local p={o.Music,o.Photos,o.Settings}local q=1 local r={{723652641,"Astronaut - 13 (FlashYizz Remix)"},}local s=1 local t=n[2].Equalizer.Bars:GetChildren()local u=false local v=true local w=n[3].Block local x={w.P1,w.P2,w.P3,w.P4}local y=1 function a(z)y=z print(y)for A,B in pairs(n)do B.Visible=(B==n[y])and true or false end end m.MouseButton1Click:connect(function()if(y==1)then a(q)end end)l.MouseButton1Click:connect(function()if(y~=1)then a(1)end end)for z,A in pairs(p)do A.MouseEnter:connect(function()q=z for B,C in pairs(p)do C.BackgroundColor3=(B==z)and Color3.new(1,1,1)or Color3.new(0.5,0.5,0.5)end end)A.MouseButton1Click:connect(function()if(A==p[1])then a(2)elseif(A==p[2])then a(3)elseif(A==p[3])then a(4)end end)end for z,A in pairs(x)do A.MouseButton1Click:connect(function()h.Background.Image=A.Image end)end function b(z)n[2].Song.Text=z[2]k.SoundId="rbxassetid://"..z[1]end n[2].Prev.MouseButton1Click:connect(function()if(s<=1)then s=#r else s=s-1 end k:Stop()u=false n[2].Play.Text="Play"b(r[s])end)n[2].Next.MouseButton1Click:connect(function()if(s>=#r)then s=1 else s=s+1 end k:Stop()u=false n[2].Play.Text="Play"b(r[s])end)n[2].Play.MouseButton1Click:connect(function()v=not v if(v)then k:Pause()u=false n[2].Play.Text="Play"else k:Play()u=true n[2].Play.Text="Pause"end end)function c()b(r[s])while wait(0.2)do for C,D in pairs(t)do local E=u and math.random()or 0 D:TweenSize(UDim2.new(0.1,-3,E,0),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.2,true)end local z=j:GetMinutesAfterMidnight()local A=math.floor(z%60)A=A<10 and"0"..A or A local B=math.floor(z/60%24)g.TopBar.Time.Text=B..":"..A end end c()
  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,Anchored,Color,Material,Position,Orientation,Size,BackSurface,BottomSurface,FrontSurface,TopSurface,C0,C1,Part0,Part1,Transparency,CanCollide,LeftSurface,RightSurface,CanvasSize,BackgroundColor3,'
  138. ..'BackgroundTransparency,BorderSizePixel,ClipsDescendants,ZIndex,Style,BorderColor3,Font,Text,TextColor3,TextSize,Visible,Image,Rotation,TextXAlignment,TextStrokeColor3,TextStrokeTransparency,TextWrappe'
  139. ..'d;Part,Model,ManualWeld,SurfaceGui,Frame,TextButton,ImageButton,ImageLabel,TextLabel,Script;Part|Bottom [Add Decal Here]|1|0.066,0.066,0.066|272|16.959,0.817,10.429|0,180,0|8.171,1.634,11.44|10|0|Bott'
  140. ..'om [Add Decal Here]-to-Bottom [Add Decal Here] Strong Joint|4.085,-0.818,5.72,0,0,1,0,1,-0,-1,0,0|-5.721,-0.818,4.903,0.999,0,0,-0.001,-0.001,0.999,0,-1,-0.001|-4.086,-0.818,-5.721,0,0,-1,0,1,0,1,0,0|'
  141. ..'5.72,0.817,4.903,-1,0,-0.001,0,-0.001,-1,-0.001,-1,0|-4.086,0.817,5.72,-1,0,0,0,0,1,0,1,-0|-4.086,-4.086,0.817,-1,0,0,0,0,1,0,1,-0|GoInfotainmentSystem|16.959,5.72,12.064|0,-180,0|8.171,8.171,8.171|0|'
  142. ..'250,200|Main|1,0,1,0|1,1,1|Display|0,5,0,5|1,-10,1,-40|0,0,0|4|Body|0,0,0,18|1,0,1,-18|Home|3|Bar|1,-90,0.5,-65|0,100,0,130|3|Music|0,0,0,1|1,0,0.33,-2|0.5|24|Settings|0,0,0.67,1|0.501,0.501,0.501|Pho'
  143. ..'tos|0,0,0.33,1|Block|0.05,0,0.05,0|0.899,0,0.899,0|2|P1|0.5,0,0.5,0|http://www.roblox.com/asset/?id=154001718|P2|0.5,0,0,0|http://www.roblox.com/asset/?id=112050770|P3|0,0,0.5,0|http://www.roblox.com/'
  144. ..'asset/?id=52995365|P4|http://www.roblox.com/asset/?id=155840248|Background|0,50,0,50|0.6,0,0.5,0|o!|36|0.2,0,0.5,0|g|0.705,0,0|48|Equalizer|0.25,0,0,5|0.75,-10,1,-80|BottomLine|0,5,1,-5|1,-10,0,0|Bars'
  145. ..'|1,-10,1,-10|180|0.1,-3,0,0|0,0.588,0|0.1,0,0,0|0.3,0,0,0|0.2,0,0,0|0.4,0,0,0|0.8,0,0,0|0.699,0,0,0|0.899,0,0,0|0.6,0,0,0|Prev|0,5,1,-40|0,70,0,30|0.2|<|Play|0.5,-35,1,-40|Next|1,-75,1,-40|>|Song|0,0,'
  146. ..'1,-70|1,0,0,20|Loading...|14|TopBar|1,0,0,18|Time|14:00|18|1|Version|V1.0|Buttons|0,5,1,-30|1,-10,0,20|5|0.5,0,1,0|0.827,0.827,0.827|6|0.078,0.078,0.078|Go|Go!|GoInfotainmentSystem-to-Bottom [Add Deca'
  147. ..'l Here] Strong Joint|4.085,-4.086,4.085,1,0,0,0,0,-1,0,1,0|4.085,0.817,2.451,1,0,-0.001,-0.001,0,-1,0,1,0|4.085,-4.086,4.085,0,0,1,0,1,-0,-1,0,0|-2.452,-0.818,3.268,0.999,0,0,-0.001,-0.001,0.999,0,-1,'
  148. ..'-0.001|-4.086,-4.086,-4.086,0,0,-1,0,1,0,1,0,0|5.72,0.817,3.268,-1,0,-0.001,0,-0.001,-1,-0.001,-1,0|21.862,4.903,10.429|90,-90,0|11.44,1.634,9.806|-5.721,0.817,4.903,-1,0,0,0,0,0.999,0,1,0|-4.086,-5.7'
  149. ..'21,0.817,-0.001,-0.001,0.999,-0.001,-1,-0.001,0.999,-0.001,0|16.959,10.622,10.429|11.44,1.634,11.44|Bottom [Add Decal Here]-to-GoInfotainmentSystem Strong Joint|5.72,-0.818,5.72,1,0,0,0,0,-1,0,1,0|5.7'
  150. ..'2,4.085,7.354,1,0,0,0,-0.001,-1,0,1,-0.001|-5.721,0.817,-4.904,0,-1,-0.001,0.999,0,0,-0.001,-0.001,0.999|-5.721,10.623,-4.904,0,-1,-0.001,0.999,0,0,-0.001,-0.001,0.999|5.72,4.085,0.817,1,0,0,0,0,-1,0,'
  151. ..'1,0|12.056,4.903,10.43|5.72,-0.818,4.903,0.999,0,0,0,0,-1,-0,1,0|4.085,-5.721,-10.624,0,-0.001,-1,0,-1,0,-1,-0.001,-0.001|16.959,5.72,5.526|8.171,8.171,1.634;0,3>14>2,3>15>62,4>14>2,4>15>55,5>14>2,5>1'
  152. ..'5>64,52>14>6,52>15>2,53>14>6,53>15>62,54>14>6,54>15>55,56>14>55,56>15>64,58>14>57,58>15>6,59>14>57,59>15>62,60>14>57,60>15>55,61>14>57,61>15>64,63>14>62,63>15>64;2;n;1|1:2|2:3|3:4|4:5|5:6|6:7|7:8|8:9|'
  153. ..'9:10|10:9|11:10|3:4|3:4;n;3|1:11|12:12|13:13;3|1:11|12:14|13:15;3|1:11|12:16|13:17;p;1|1:18|2:3|3:4|4:5|16:3|5:19|6:20|7:21|17:22|8:9|9:9|10:9|18:9|19:9|11:9|3:4|3:4;n;4|20:23;n;5|1:24|7:25|21:26|22:3'
  154. ..';n;5|1:27|5:28|7:29|21:30|23:31|24:3;n;5|1:32|5:33|7:34|21:26|22:3;n;5|1:35|7:25|21:26|22:3|25:36;n;5|1:37|5:38|7:39|21:26|25:36|24:3|26:40;n;6|1:41|5:42|7:43|21:26|22:44|27:30|25:36|28:40|29:41|30:26'
  155. ..'|31:45;6|1:46|5:47|7:43|21:48|22:44|27:30|25:36|28:40|29:46|30:26|31:45;6|1:49|5:50|7:43|21:48|22:44|27:30|25:36|28:40|29:49|30:26|31:45;p;p;5|1:49|7:25|21:26|22:3|32:22|25:36;n;5|1:51|5:52|7:53|21:26'
  156. ..'|27:30|23:54|25:36|24:3;n;7|1:55|7:56|21:26|25:36|33:57;7|1:58|5:59|7:56|21:26|25:36|33:60;7|1:61|5:62|7:56|21:26|25:36|33:63;7|1:64|5:56|7:56|21:26|25:36|33:65;p;p;8|1:66|7:25|21:26|33:57;n;5|7:67|21'
  157. ..':26|22:3;n;9|5:68|21:26|22:3|25:54|28:40|29:69|30:26|31:70;9|5:71|21:26|22:3|25:54|28:40|29:72|30:73|31:74;p;p;5|1:41|7:25|21:26|22:3|32:22|25:36;n;5|1:75|5:76|7:77|21:30|22:44;n;5|1:78|5:79|7:80|21:2'
  158. ..'6|27:30|25:54;5|1:81|5:28|7:82|21:26|22:3|34:83;n;5|7:84|21:85|23:22;5|5:86|7:84|21:85|23:22;5|5:87|7:84|21:85|23:22;5|5:88|7:84|21:85|23:22;5|5:89|7:84|21:85|23:22;5|5:90|7:84|21:85|23:22;5|5:59|7:84'
  159. ..'|21:85|23:22;5|5:91|7:84|21:85|23:22;5|5:92|7:84|21:85|23:22;5|5:93|7:84|21:85|23:22;p;p;6|1:94|5:95|7:96|21:30|22:97|28:40|29:98|30:26|31:74;6|1:99|5:100|7:96|21:30|22:97|28:40|29:99|30:26|31:70;6|1:'
  160. ..'101|5:102|7:96|21:30|22:97|28:40|29:103|30:26|31:74;9|1:104|5:105|7:106|21:30|22:97|28:40|29:107|30:26|31:108;p;5|1:46|7:25|21:26|22:3|32:22|25:36;p;5|1:109|7:110|21:30|23:22;n;9|1:111|7:25|21:26|22:3'
  161. ..'|28:40|29:112|30:26|31:113|35:114;9|1:115|7:25|21:26|22:3|28:40|29:116|30:26|31:113|35:10;p;p;5|1:117|5:118|7:119|21:30|23:31|25:120;n;6|1:35|7:121|21:122|25:123|28:40|29:35|30:26|31:113|36:124|37:22|'
  162. ..'38:3;6|1:125|5:59|7:121|21:122|25:123|28:40|29:126|30:26|31:113|36:124|37:22|38:3;p;10;p;p;3|1:127|12:128|13:129;3|1:127|12:130|13:131;3|1:127|12:132|13:133;p;1|1:2|2:3|3:4|4:5|5:134|6:135|7:136|9:9|1'
  163. ..'8:9|19:9|11:10|3:4|3:4;n;3|1:11|12:137|13:138;p;1|1:2|2:3|3:4|4:5|5:139|6:7|7:140|8:9|9:10|10:9|18:9|19:9|11:10|3:4|3:4;n;3|1:141|12:142|13:143;3|1:11|12:142|13:144;3|1:11|12:142|13:145;3|1:11|12:142|'
  164. ..'13:146;p;1|1:2|2:3|3:4|4:5|5:147|6:135|7:136|9:10|18:9|19:9|11:9|3:4|3:4;n;3|1:11|12:148|13:149;p;1|1:2|2:3|3:4|4:5|5:150|6:7|7:151|8:9|9:10|11:10|3:4|3:4;p;')
  165. for _,Object in pairs(Objects) do
  166. Object.Parent = script and script.Parent==workspace and script or workspace
  167. end
  168. for _,f in pairs(ActualScripts) do f() end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement