Advertisement
DARKMODZ

Untitled

Apr 23rd, 2024
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 40.43 KB | None | 0 0
  1. local ui = {}
  2.  
  3. function ui:load(config)
  4. local function newfolder(name)
  5. if not isfolder(name) then
  6. makefolder(name)
  7. end
  8. end
  9.  
  10. newfolder(config.file)
  11.  
  12. local settings = {
  13. ["scale"] = config.Scale;
  14. ["version"] = config.Version;
  15. ["tracks"] = config.Tracks;
  16. }
  17.  
  18. if game:GetService("CoreGui"):FindFirstChild("SP") then
  19. game:GetService("CoreGui")["SP"]:Destroy()
  20. elseif game:GetService("Players").LocalPlayer.PlayerGui:FindFirstChild("SP") then
  21. game:GetService("Players").LocalPlayer.PlayerGui["SP"]:Destroy()
  22. end
  23.  
  24. local G2L = {};
  25.  
  26. -- StarterGui.SP
  27. G2L["1"] = Instance.new("ScreenGui", game:GetService("CoreGui"));
  28. G2L["1"]["IgnoreGuiInset"] = true;
  29. G2L["1"]["ScreenInsets"] = Enum.ScreenInsets.DeviceSafeInsets;
  30. G2L["1"]["Name"] = [[_SP]];
  31. G2L["1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
  32. G2L["1"]["ResetOnSpawn"] = false;
  33.  
  34. -- StarterGui.SP.Holder
  35. G2L["2"] = Instance.new("Frame", G2L["1"]);
  36. G2L["2"]["BorderSizePixel"] = 0;
  37. G2L["2"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  38. G2L["2"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  39. G2L["2"]["Size"] = UDim2.new(0, 490, 0, 130);
  40. G2L["2"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  41. G2L["2"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  42. G2L["2"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  43. G2L["2"]["Name"] = [[Holder]];
  44.  
  45. -- StarterGui.SP.Holder.UICorner
  46. G2L["3"] = Instance.new("UICorner", G2L["2"]);
  47. G2L["3"]["CornerRadius"] = UDim.new(0, 12);
  48.  
  49. -- StarterGui.SP.Holder.Dragify
  50. G2L["4"] = Instance.new("LocalScript", G2L["2"]);
  51. G2L["4"]["Name"] = [[Dragify]];
  52.  
  53. -- StarterGui.SP.Holder.TrackList
  54. G2L["5"] = Instance.new("Frame", G2L["2"]);
  55. G2L["5"]["BorderSizePixel"] = 0;
  56. G2L["5"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  57. G2L["5"]["BackgroundTransparency"] = 1;
  58. G2L["5"]["Size"] = UDim2.new(1, 0, 0.6230769157409668, 0);
  59. G2L["5"]["ClipsDescendants"] = true;
  60. G2L["5"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  61. G2L["5"]["Position"] = UDim2.new(0, 0, 0, 49);
  62. G2L["5"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  63. G2L["5"]["Name"] = [[TrackList]];
  64.  
  65. -- StarterGui.SP.Holder.TrackList.UIListLayout
  66. G2L["6"] = Instance.new("UIListLayout", G2L["5"]);
  67. G2L["6"]["HorizontalAlignment"] = Enum.HorizontalAlignment.Center;
  68. G2L["6"]["SortOrder"] = Enum.SortOrder.LayoutOrder;
  69.  
  70. -- StarterGui.SP.Holder.TrackList.TrackList
  71. G2L["7"] = Instance.new("ScrollingFrame", G2L["5"]);
  72. G2L["7"]["Active"] = true;
  73. G2L["7"]["ScrollingDirection"] = Enum.ScrollingDirection.Y;
  74. G2L["7"]["BorderSizePixel"] = 0;
  75. G2L["7"]["CanvasSize"] = UDim2.new(0, 0, 0, 0);
  76. G2L["7"]["TopImage"] = [[rbxasset://textures/ui/Scroll/scroll-middle.png]];
  77. G2L["7"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  78. G2L["7"]["BackgroundTransparency"] = 1;
  79. G2L["7"]["Size"] = UDim2.new(1, 0, 0, 81);
  80. G2L["7"]["ScrollBarImageColor3"] = Color3.fromRGB(208, 208, 208);
  81. G2L["7"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  82. G2L["7"]["ScrollBarThickness"] = 8;
  83. G2L["7"]["Position"] = UDim2.new(0, 0, 0, 49);
  84. G2L["7"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  85. G2L["7"]["Name"] = [[TrackList]];
  86. G2L["7"]["BottomImage"] = [[rbxasset://textures/ui/Scroll/scroll-middle.png]];
  87.  
  88. -- StarterGui.SP.Holder.TrackList.TrackList.Function
  89. G2L["8"] = Instance.new("LocalScript", G2L["7"]);
  90. G2L["8"]["Name"] = [[Function]];
  91.  
  92. -- StarterGui.SP.Holder.TrackList.TrackList.UIPadding
  93. G2L["17"] = Instance.new("UIPadding", G2L["7"]);
  94. G2L["17"]["PaddingLeft"] = UDim.new(0, 6);
  95.  
  96. -- StarterGui.SP.Holder.TrackList.TrackList.UIGridLayout
  97. G2L["18"] = Instance.new("UIGridLayout", G2L["7"]);
  98. G2L["18"]["SortOrder"] = Enum.SortOrder.LayoutOrder;
  99. G2L["18"]["CellSize"] = UDim2.new(0, 238, 0, 81);
  100. G2L["18"]["CellPadding"] = UDim2.new(0, 0, 0, 0);
  101.  
  102. -- StarterGui.SP.Holder.TrackList.PLAYING
  103. G2L["19"] = Instance.new("Frame", G2L["5"]);
  104. G2L["19"]["BorderSizePixel"] = 0;
  105. G2L["19"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  106. G2L["19"]["BackgroundTransparency"] = 1;
  107. G2L["19"]["Size"] = UDim2.new(0, 490, 0, 81);
  108. G2L["19"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  109. G2L["19"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  110. G2L["19"]["Name"] = [[PLAYING]];
  111.  
  112. -- StarterGui.SP.Holder.TrackList.PLAYING.INFO
  113. G2L["1a"] = Instance.new("Frame", G2L["19"]);
  114. G2L["1a"]["BorderSizePixel"] = 0;
  115. G2L["1a"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  116. G2L["1a"]["AnchorPoint"] = Vector2.new(0, 0.5);
  117. G2L["1a"]["BackgroundTransparency"] = 1;
  118. G2L["1a"]["Size"] = UDim2.new(0, 134, 0, 55);
  119. G2L["1a"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  120. G2L["1a"]["Position"] = UDim2.new(0, 66, 0, 40);
  121. G2L["1a"]["Name"] = [[INFO]];
  122.  
  123. -- StarterGui.SP.Holder.TrackList.PLAYING.INFO.UIListLayout
  124. G2L["1b"] = Instance.new("UIListLayout", G2L["1a"]);
  125. G2L["1b"]["HorizontalAlignment"] = Enum.HorizontalAlignment.Center;
  126. G2L["1b"]["SortOrder"] = Enum.SortOrder.LayoutOrder;
  127.  
  128. -- StarterGui.SP.Holder.TrackList.PLAYING.INFO.TRACKNAME
  129. G2L["1c"] = Instance.new("TextLabel", G2L["1a"]);
  130. G2L["1c"]["TextTruncate"] = Enum.TextTruncate.AtEnd;
  131. G2L["1c"]["BorderSizePixel"] = 0;
  132. G2L["1c"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  133. G2L["1c"]["TextXAlignment"] = Enum.TextXAlignment.Left;
  134. G2L["1c"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
  135. G2L["1c"]["TextSize"] = 14;
  136. G2L["1c"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  137. G2L["1c"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  138. G2L["1c"]["Size"] = UDim2.new(1, 0, 0.5, 0);
  139. G2L["1c"]["ClipsDescendants"] = true;
  140. G2L["1c"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  141. G2L["1c"]["Text"] = [[TRACK NAME]];
  142. G2L["1c"]["Name"] = [[TRACKNAME]];
  143. G2L["1c"]["BackgroundTransparency"] = 1;
  144. G2L["1c"]["Position"] = UDim2.new(0.13469387590885162, 0, 0.16049382090568542, 0);
  145.  
  146. -- StarterGui.SP.Holder.TrackList.PLAYING.INFO.TRACKNAME.UIPadding
  147. G2L["1d"] = Instance.new("UIPadding", G2L["1c"]);
  148. G2L["1d"]["PaddingLeft"] = UDim.new(0, 8);
  149.  
  150. -- StarterGui.SP.Holder.TrackList.PLAYING.INFO.TRACKARTIST
  151. G2L["1e"] = Instance.new("TextLabel", G2L["1a"]);
  152. G2L["1e"]["TextTruncate"] = Enum.TextTruncate.AtEnd;
  153. G2L["1e"]["BorderSizePixel"] = 0;
  154. G2L["1e"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  155. G2L["1e"]["TextXAlignment"] = Enum.TextXAlignment.Left;
  156. G2L["1e"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
  157. G2L["1e"]["TextSize"] = 12;
  158. G2L["1e"]["TextColor3"] = Color3.fromRGB(81, 81, 81);
  159. G2L["1e"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  160. G2L["1e"]["Size"] = UDim2.new(1, 0, 0.5, 0);
  161. G2L["1e"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  162. G2L["1e"]["Text"] = [[TRACK ARTIST]];
  163. G2L["1e"]["Name"] = [[TRACKARTIST]];
  164. G2L["1e"]["BackgroundTransparency"] = 1;
  165. G2L["1e"]["Position"] = UDim2.new(0.13469387590885162, 0, 0.4938271641731262, 0);
  166.  
  167. -- StarterGui.SP.Holder.TrackList.PLAYING.INFO.TRACKARTIST.UIPadding
  168. G2L["1f"] = Instance.new("UIPadding", G2L["1e"]);
  169. G2L["1f"]["PaddingLeft"] = UDim.new(0, 8);
  170.  
  171. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS
  172. G2L["20"] = Instance.new("Frame", G2L["19"]);
  173. G2L["20"]["BorderSizePixel"] = 0;
  174. G2L["20"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  175. G2L["20"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  176. G2L["20"]["BackgroundTransparency"] = 1;
  177. G2L["20"]["Size"] = UDim2.new(0.5918367505073547, 0, 1, 0);
  178. G2L["20"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  179. G2L["20"]["Position"] = UDim2.new(0.704081654548645, 0, 0.5, 0);
  180. G2L["20"]["Name"] = [[TRACKOPTIONS]];
  181.  
  182. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS
  183. G2L["21"] = Instance.new("Frame", G2L["20"]);
  184. G2L["21"]["BorderSizePixel"] = 0;
  185. G2L["21"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  186. G2L["21"]["BackgroundTransparency"] = 1;
  187. G2L["21"]["Size"] = UDim2.new(1, 0, 0.4000000059604645, 0);
  188. G2L["21"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  189. G2L["21"]["Position"] = UDim2.new(0, 0, 0.6000000238418579, 0);
  190. G2L["21"]["Name"] = [[PROGRESS]];
  191.  
  192. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.UIListLayout
  193. G2L["22"] = Instance.new("UIListLayout", G2L["21"]);
  194. G2L["22"]["VerticalAlignment"] = Enum.VerticalAlignment.Center;
  195. G2L["22"]["FillDirection"] = Enum.FillDirection.Horizontal;
  196. G2L["22"]["HorizontalAlignment"] = Enum.HorizontalAlignment.Center;
  197. G2L["22"]["Padding"] = UDim.new(0, 9);
  198. G2L["22"]["SortOrder"] = Enum.SortOrder.LayoutOrder;
  199.  
  200. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar
  201. G2L["23"] = Instance.new("Frame", G2L["21"]);
  202. G2L["23"]["BorderSizePixel"] = 0;
  203. G2L["23"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  204. G2L["23"]["Size"] = UDim2.new(0.8999999761581421, 0, 0.30000001192092896, 0);
  205. G2L["23"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  206. G2L["23"]["Position"] = UDim2.new(0.021472392603754997, 0, 0.350000262260437, 0);
  207. G2L["23"]["Name"] = [[ProgressBar]];
  208.  
  209. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.UIStroke
  210. G2L["24"] = Instance.new("UIStroke", G2L["23"]);
  211. G2L["24"]["Color"] = Color3.fromRGB(31, 31, 31);
  212.  
  213. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.UICorner
  214. G2L["25"] = Instance.new("UICorner", G2L["23"]);
  215. G2L["25"]["CornerRadius"] = UDim.new(1, 0);
  216.  
  217. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.Bar
  218. G2L["26"] = Instance.new("Frame", G2L["23"]);
  219. G2L["26"]["BorderSizePixel"] = 0;
  220. G2L["26"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  221. G2L["26"]["Size"] = UDim2.new(0.19923371076583862, 0, 1, 0);
  222. G2L["26"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  223. G2L["26"]["Position"] = UDim2.new(-0.0038314175326377153, 0, 0, 0);
  224. G2L["26"]["Name"] = [[Bar]];
  225.  
  226. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.Bar.UICorner
  227. G2L["27"] = Instance.new("UICorner", G2L["26"]);
  228. G2L["27"]["CornerRadius"] = UDim.new(1, 0);
  229.  
  230. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.Function
  231. G2L["28"] = Instance.new("LocalScript", G2L["23"]);
  232. G2L["28"]["Name"] = [[Function]];
  233.  
  234. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.Button
  235. G2L["29"] = Instance.new("ImageButton", G2L["23"]);
  236. G2L["29"]["BorderSizePixel"] = 0;
  237. G2L["29"]["AutoButtonColor"] = false;
  238. G2L["29"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  239. G2L["29"]["Size"] = UDim2.new(1, 0, 1, 0);
  240. G2L["29"]["Name"] = [[Button]];
  241. G2L["29"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  242. G2L["29"]["BackgroundTransparency"] = 1;
  243.  
  244. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS
  245. G2L["2a"] = Instance.new("Frame", G2L["20"]);
  246. G2L["2a"]["BorderSizePixel"] = 0;
  247. G2L["2a"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  248. G2L["2a"]["BackgroundTransparency"] = 1;
  249. G2L["2a"]["Size"] = UDim2.new(1, 0, 0.6000000238418579, 0);
  250. G2L["2a"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  251. G2L["2a"]["Name"] = [[OPTIONS]];
  252.  
  253. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.UIListLayout
  254. G2L["2b"] = Instance.new("UIListLayout", G2L["2a"]);
  255. G2L["2b"]["VerticalAlignment"] = Enum.VerticalAlignment.Center;
  256. G2L["2b"]["FillDirection"] = Enum.FillDirection.Horizontal;
  257. G2L["2b"]["HorizontalAlignment"] = Enum.HorizontalAlignment.Center;
  258. G2L["2b"]["Padding"] = UDim.new(0, 9);
  259. G2L["2b"]["SortOrder"] = Enum.SortOrder.LayoutOrder;
  260.  
  261. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Prev
  262. G2L["2c"] = Instance.new("Frame", G2L["2a"]);
  263. G2L["2c"]["ZIndex"] = 2;
  264. G2L["2c"]["BorderSizePixel"] = 0;
  265. G2L["2c"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  266. G2L["2c"]["Size"] = UDim2.new(0, 28, 0, 28);
  267. G2L["2c"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  268. G2L["2c"]["Position"] = UDim2.new(0.9020408391952515, 0, 0, 0);
  269. G2L["2c"]["Name"] = [[Prev]];
  270.  
  271. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Prev.Function
  272. G2L["2d"] = Instance.new("LocalScript", G2L["2c"]);
  273. G2L["2d"]["Name"] = [[Function]];
  274.  
  275. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Prev.UICorner
  276. G2L["2e"] = Instance.new("UICorner", G2L["2c"]);
  277. G2L["2e"]["CornerRadius"] = UDim.new(1, 0);
  278.  
  279. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Prev.Button
  280. G2L["2f"] = Instance.new("ImageButton", G2L["2c"]);
  281. G2L["2f"]["BorderSizePixel"] = 0;
  282. G2L["2f"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  283. G2L["2f"]["Size"] = UDim2.new(1, 0, 1, 0);
  284. G2L["2f"]["Name"] = [[Button]];
  285. G2L["2f"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  286. G2L["2f"]["BackgroundTransparency"] = 1;
  287.  
  288. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Prev.Icon
  289. G2L["30"] = Instance.new("ImageLabel", G2L["2c"]);
  290. G2L["30"]["ZIndex"] = 2;
  291. G2L["30"]["BorderSizePixel"] = 0;
  292. G2L["30"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  293. G2L["30"]["ImageColor3"] = Color3.fromRGB(201, 201, 201);
  294. G2L["30"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  295. G2L["30"]["Image"] = [[rbxassetid://7072722377]];
  296. G2L["30"]["Size"] = UDim2.new(0.699999988079071, 0, 0.699999988079071, 0);
  297. G2L["30"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  298. G2L["30"]["Name"] = [[Icon]];
  299. G2L["30"]["BackgroundTransparency"] = 1;
  300. G2L["30"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  301.  
  302. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.PlayButton
  303. G2L["31"] = Instance.new("Frame", G2L["2a"]);
  304. G2L["31"]["ZIndex"] = 2;
  305. G2L["31"]["BorderSizePixel"] = 0;
  306. G2L["31"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  307. G2L["31"]["Size"] = UDim2.new(0, 38, 0, 38);
  308. G2L["31"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  309. G2L["31"]["Position"] = UDim2.new(0.9020408391952515, 0, 0, 0);
  310. G2L["31"]["Name"] = [[PlayButton]];
  311.  
  312. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.PlayButton.Function
  313. G2L["32"] = Instance.new("LocalScript", G2L["31"]);
  314. G2L["32"]["Name"] = [[Function]];
  315.  
  316. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.PlayButton.UICorner
  317. G2L["33"] = Instance.new("UICorner", G2L["31"]);
  318. G2L["33"]["CornerRadius"] = UDim.new(1, 0);
  319.  
  320. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.PlayButton.Button
  321. G2L["34"] = Instance.new("ImageButton", G2L["31"]);
  322. G2L["34"]["BorderSizePixel"] = 0;
  323. G2L["34"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  324. G2L["34"]["Size"] = UDim2.new(1, 0, 1, 0);
  325. G2L["34"]["Name"] = [[Button]];
  326. G2L["34"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  327. G2L["34"]["BackgroundTransparency"] = 1;
  328.  
  329. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.PlayButton.Icon
  330. G2L["35"] = Instance.new("ImageLabel", G2L["31"]);
  331. G2L["35"]["ZIndex"] = 2;
  332. G2L["35"]["BorderSizePixel"] = 0;
  333. G2L["35"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  334. G2L["35"]["ImageColor3"] = Color3.fromRGB(201, 201, 201);
  335. G2L["35"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  336. G2L["35"]["Image"] = [[rbxassetid://7072720676]];
  337. G2L["35"]["Size"] = UDim2.new(0.699999988079071, 0, 0.699999988079071, 0);
  338. G2L["35"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  339. G2L["35"]["Name"] = [[Icon]];
  340. G2L["35"]["BackgroundTransparency"] = 1;
  341. G2L["35"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  342.  
  343. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Next
  344. G2L["36"] = Instance.new("Frame", G2L["2a"]);
  345. G2L["36"]["ZIndex"] = 2;
  346. G2L["36"]["BorderSizePixel"] = 0;
  347. G2L["36"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  348. G2L["36"]["Size"] = UDim2.new(0, 28, 0, 28);
  349. G2L["36"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  350. G2L["36"]["Position"] = UDim2.new(0.9020408391952515, 0, 0, 0);
  351. G2L["36"]["Name"] = [[Next]];
  352.  
  353. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Next.Function
  354. G2L["37"] = Instance.new("LocalScript", G2L["36"]);
  355. G2L["37"]["Name"] = [[Function]];
  356.  
  357. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Next.UICorner
  358. G2L["38"] = Instance.new("UICorner", G2L["36"]);
  359. G2L["38"]["CornerRadius"] = UDim.new(1, 0);
  360.  
  361. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Next.Button
  362. G2L["39"] = Instance.new("ImageButton", G2L["36"]);
  363. G2L["39"]["BorderSizePixel"] = 0;
  364. G2L["39"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  365. G2L["39"]["Size"] = UDim2.new(1, 0, 1, 0);
  366. G2L["39"]["Name"] = [[Button]];
  367. G2L["39"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  368. G2L["39"]["BackgroundTransparency"] = 1;
  369.  
  370. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Next.Icon
  371. G2L["3a"] = Instance.new("ImageLabel", G2L["36"]);
  372. G2L["3a"]["ZIndex"] = 2;
  373. G2L["3a"]["BorderSizePixel"] = 0;
  374. G2L["3a"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  375. G2L["3a"]["ImageColor3"] = Color3.fromRGB(201, 201, 201);
  376. G2L["3a"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  377. G2L["3a"]["Image"] = [[rbxassetid://7072722426]];
  378. G2L["3a"]["Size"] = UDim2.new(0.699999988079071, 0, 0.699999988079071, 0);
  379. G2L["3a"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  380. G2L["3a"]["Name"] = [[Icon]];
  381. G2L["3a"]["BackgroundTransparency"] = 1;
  382. G2L["3a"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  383.  
  384. -- StarterGui.SP.Holder.TrackList.PLAYING.TrackCover
  385. G2L["3b"] = Instance.new("ImageLabel", G2L["19"]);
  386. G2L["3b"]["BorderSizePixel"] = 0;
  387. G2L["3b"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  388. G2L["3b"]["AnchorPoint"] = Vector2.new(0, 0.5);
  389. G2L["3b"]["Image"] = [[rbxasset://textures/ui/GuiImagePlaceholder.png]];
  390. G2L["3b"]["Size"] = UDim2.new(0, 55, 0, 55);
  391. G2L["3b"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  392. G2L["3b"]["Name"] = [[TrackCover]];
  393. G2L["3b"]["Position"] = UDim2.new(0.024000000208616257, 0, 0.5, 0);
  394.  
  395. -- StarterGui.SP.Holder.TrackList.PLAYING.TrackCover.UICorner
  396. G2L["3c"] = Instance.new("UICorner", G2L["3b"]);
  397.  
  398.  
  399. -- StarterGui.SP.Holder.Topbar
  400. G2L["3d"] = Instance.new("Frame", G2L["2"]);
  401. G2L["3d"]["ZIndex"] = 999999999;
  402. G2L["3d"]["BorderSizePixel"] = 0;
  403. G2L["3d"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  404. G2L["3d"]["Size"] = UDim2.new(0, 490, 0, 48);
  405. G2L["3d"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  406. G2L["3d"]["Name"] = [[Topbar]];
  407.  
  408. -- StarterGui.SP.Holder.Topbar.UICorner
  409. G2L["3e"] = Instance.new("UICorner", G2L["3d"]);
  410. G2L["3e"]["CornerRadius"] = UDim.new(0, 12);
  411.  
  412. -- StarterGui.SP.Holder.Topbar.cover
  413. G2L["3f"] = Instance.new("Frame", G2L["3d"]);
  414. G2L["3f"]["BorderSizePixel"] = 0;
  415. G2L["3f"]["BackgroundColor3"] = Color3.fromRGB(31, 31, 31);
  416. G2L["3f"]["Size"] = UDim2.new(0, 490, 0, 1);
  417. G2L["3f"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  418. G2L["3f"]["Position"] = UDim2.new(0, 0, 1, 0);
  419. G2L["3f"]["Name"] = [[cover]];
  420.  
  421. -- StarterGui.SP.Holder.Topbar.Close
  422. G2L["40"] = Instance.new("Frame", G2L["3d"]);
  423. G2L["40"]["ZIndex"] = 2;
  424. G2L["40"]["BorderSizePixel"] = 0;
  425. G2L["40"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  426. G2L["40"]["Size"] = UDim2.new(0, 48, 0, 48);
  427. G2L["40"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  428. G2L["40"]["Position"] = UDim2.new(0.9020408391952515, 0, 0, 0);
  429. G2L["40"]["Name"] = [[Close]];
  430.  
  431. -- StarterGui.SP.Holder.Topbar.Close.UICorner
  432. G2L["41"] = Instance.new("UICorner", G2L["40"]);
  433. G2L["41"]["CornerRadius"] = UDim.new(0, 12);
  434.  
  435. -- StarterGui.SP.Holder.Topbar.Close.cover-bottom
  436. G2L["42"] = Instance.new("Frame", G2L["40"]);
  437. G2L["42"]["ZIndex"] = 2;
  438. G2L["42"]["BorderSizePixel"] = 0;
  439. G2L["42"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  440. G2L["42"]["Size"] = UDim2.new(0, 48, 0, 12);
  441. G2L["42"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  442. G2L["42"]["Position"] = UDim2.new(0, 0, 0.75, 0);
  443. G2L["42"]["Name"] = [[cover-bottom]];
  444.  
  445. -- StarterGui.SP.Holder.Topbar.Close.cover-left
  446. G2L["43"] = Instance.new("Frame", G2L["40"]);
  447. G2L["43"]["ZIndex"] = 2;
  448. G2L["43"]["BorderSizePixel"] = 0;
  449. G2L["43"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  450. G2L["43"]["Size"] = UDim2.new(0, 9, 0, 48);
  451. G2L["43"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  452. G2L["43"]["Name"] = [[cover-left]];
  453.  
  454. -- StarterGui.SP.Holder.Topbar.Close.CloseX
  455. G2L["44"] = Instance.new("ImageLabel", G2L["40"]);
  456. G2L["44"]["ZIndex"] = 2;
  457. G2L["44"]["BorderSizePixel"] = 0;
  458. G2L["44"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  459. G2L["44"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  460. G2L["44"]["Image"] = [[rbxassetid://7072725342]];
  461. G2L["44"]["Size"] = UDim2.new(0.5, 0, 0.5, 0);
  462. G2L["44"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  463. G2L["44"]["Name"] = [[CloseX]];
  464. G2L["44"]["BackgroundTransparency"] = 1;
  465. G2L["44"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  466.  
  467. -- StarterGui.SP.Holder.Topbar.Close.CloseButton
  468. G2L["45"] = Instance.new("ImageButton", G2L["40"]);
  469. G2L["45"]["BorderSizePixel"] = 0;
  470. G2L["45"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  471. G2L["45"]["Size"] = UDim2.new(1, 0, 1, 0);
  472. G2L["45"]["Name"] = [[CloseButton]];
  473. G2L["45"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  474. G2L["45"]["BackgroundTransparency"] = 1;
  475.  
  476. -- StarterGui.SP.Holder.Topbar.Close.Function
  477. G2L["46"] = Instance.new("LocalScript", G2L["40"]);
  478. G2L["46"]["Name"] = [[Function]];
  479.  
  480. -- StarterGui.SP.Holder.Topbar.TitleLabel
  481. G2L["47"] = Instance.new("TextLabel", G2L["3d"]);
  482. G2L["47"]["ZIndex"] = 999999999;
  483. G2L["47"]["BorderSizePixel"] = 0;
  484. G2L["47"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  485. G2L["47"]["TextXAlignment"] = Enum.TextXAlignment.Left;
  486. G2L["47"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Heavy, Enum.FontStyle.Normal);
  487. G2L["47"]["TextSize"] = 16;
  488. G2L["47"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  489. G2L["47"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  490. G2L["47"]["Size"] = UDim2.new(0.6163265109062195, 0, 0.9999999403953552, 0);
  491. G2L["47"]["ClipsDescendants"] = true;
  492. G2L["47"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  493. G2L["47"]["Text"] = [[Spotify Player]];
  494. G2L["47"]["Name"] = [[TitleLabel]];
  495. G2L["47"]["BackgroundTransparency"] = 1;
  496.  
  497. -- StarterGui.SP.Holder.Topbar.TitleLabel.UIPadding
  498. G2L["48"] = Instance.new("UIPadding", G2L["47"]);
  499. G2L["48"]["PaddingRight"] = UDim.new(0, 5);
  500. G2L["48"]["PaddingLeft"] = UDim.new(0, 50);
  501.  
  502. -- StarterGui.SP.Holder.Topbar.SpotifyLogo
  503. G2L["49"] = Instance.new("Frame", G2L["3d"]);
  504. G2L["49"]["ZIndex"] = 2;
  505. G2L["49"]["BorderSizePixel"] = 0;
  506. G2L["49"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  507. G2L["49"]["Size"] = UDim2.new(0, 48, 0, 48);
  508. G2L["49"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  509. G2L["49"]["Name"] = [[SpotifyLogo]];
  510.  
  511. -- StarterGui.SP.Holder.Topbar.SpotifyLogo.UICorner
  512. G2L["4a"] = Instance.new("UICorner", G2L["49"]);
  513. G2L["4a"]["CornerRadius"] = UDim.new(0, 12);
  514.  
  515. -- StarterGui.SP.Holder.Topbar.SpotifyLogo.Icon
  516. G2L["4b"] = Instance.new("ImageLabel", G2L["49"]);
  517. G2L["4b"]["ZIndex"] = 2;
  518. G2L["4b"]["BorderSizePixel"] = 0;
  519. G2L["4b"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  520. G2L["4b"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  521. G2L["4b"]["Size"] = UDim2.new(0.6000000238418579, 0, 0.6000000238418579, 0);
  522. G2L["4b"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  523. G2L["4b"]["Name"] = [[Icon]];
  524. G2L["4b"]["BackgroundTransparency"] = 1;
  525. G2L["4b"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  526.  
  527. -- StarterGui.SP.UIScale
  528. G2L["4c"] = Instance.new("UIScale", G2L["1"]);
  529.  
  530.  
  531. -- StarterGui.SP.TRACKSOUND
  532. G2L["4d"] = Instance.new("Sound", G2L["1"]);
  533. G2L["4d"]["Volume"] = 0.699999988079071;
  534. G2L["4d"]["Looped"] = true;
  535. G2L["4d"]["SoundId"] = "0";
  536. G2L["4d"]["Name"] = [[TRACKSOUND]];
  537. G2L["4d"]["RollOffMode"] = Enum.RollOffMode.InverseTapered;
  538.  
  539. local function C_4()
  540. local script = G2L["4"];
  541. local UserInputService = game:GetService("UserInputService")
  542.  
  543. local gui = script.Parent
  544. local ui = gui.Topbar
  545.  
  546. local dragging
  547. local dragInput
  548. local dragStart
  549. local startPos
  550.  
  551. local function update(input)
  552. local delta = input.Position - dragStart
  553. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  554. end
  555.  
  556. ui.InputBegan:Connect(function(input)
  557. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  558. dragging = true
  559. dragStart = input.Position
  560. startPos = gui.Position
  561.  
  562. input.Changed:Connect(function()
  563. if input.UserInputState == Enum.UserInputState.End then
  564. dragging = false
  565. end
  566. end)
  567. end
  568. end)
  569.  
  570. ui.InputChanged:Connect(function(input)
  571. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  572. dragInput = input
  573. end
  574. end)
  575.  
  576. UserInputService.InputChanged:Connect(function(input)
  577. if input == dragInput and dragging then
  578. update(input)
  579. end
  580. end)
  581. end;
  582. task.spawn(C_4);
  583. -- StarterGui.SP.Holder.TrackList.TrackList.Function
  584. local function C_8()
  585. local script = G2L["8"];
  586. script.Parent.MouseEnter:Connect(function()
  587. script.Parent.ScrollBarImageColor3 = Color3.fromRGB(79, 240, 114)
  588. end)
  589. script.Parent.MouseLeave:Connect(function()
  590. script.Parent.ScrollBarImageColor3 = Color3.fromRGB(207, 207, 207)
  591. end)
  592. while true do
  593. local c = script.Parent:GetChildren()
  594. if #c >= 6 then
  595. script.Parent.AutomaticSize = Enum.AutomaticSize.None
  596. script.Parent.AutomaticCanvasSize = Enum.AutomaticSize.Y
  597. script.Parent.ScrollingDirection = Enum.ScrollingDirection.Y
  598. script.Parent.Size = UDim2.new(1, 0,0, 162)
  599. else
  600. script.Parent.AutomaticSize = Enum.AutomaticSize.Y
  601. script.Parent.AutomaticCanvasSize = Enum.AutomaticSize.None
  602. script.Parent.ScrollingDirection = Enum.ScrollingDirection.Y
  603. script.Parent.Size = UDim2.new(1, 0,0, 81)
  604. end
  605. wait()
  606. end
  607. end;
  608. task.spawn(C_8);
  609. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.PROGRESS.ProgressBar.Function
  610. local function C_28()
  611. local script = G2L["28"];
  612. script.Parent.Button.MouseButton1Down:Connect(function()
  613. script.Parent.Bar.Size = UDim2.new(math.clamp((game.Players.LocalPlayer:GetMouse().X - script.Parent.AbsolutePosition.X)/script.Parent.AbsoluteSize.X,0,1),0,1,0)
  614. G2L["1"].TRACKSOUND.TimePosition = math.floor(script.Parent.Bar.Size.X.Scale * G2L["1"].TRACKSOUND.TimeLength)
  615. end)
  616. script.Parent.MouseEnter:Connect(function()
  617. script.Parent.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
  618. script.Parent.Bar.BackgroundColor3 = Color3.fromRGB(64, 193, 94)
  619. end)
  620. script.Parent.MouseLeave:Connect(function()
  621. script.Parent.BackgroundColor3 = Color3.fromRGB(8, 8, 8)
  622. script.Parent.Bar.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  623. end)
  624. while true do
  625. local progress = G2L["1"].TRACKSOUND.TimePosition / G2L["1"].TRACKSOUND.TimeLength
  626. script.Parent.Bar.Size = UDim2.new(progress, 0, 1, 0)
  627. wait()
  628. end
  629. end;
  630. task.spawn(C_28);
  631. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Prev.Function
  632. local function C_2d()
  633. local script = G2L["2d"];
  634. local function enter()
  635. script.Parent.Size = UDim2.new(0, 32, 0, 32)
  636. script.Parent.Icon.ImageColor3 = Color3.fromRGB(255,255,255)
  637. end
  638. local function leave()
  639. script.Parent.Size = UDim2.new(0, 28, 0, 28)
  640. script.Parent.Icon.ImageColor3 = Color3.fromRGB(200,200,200)
  641. end
  642. script.Parent.MouseEnter:Connect(enter)
  643. script.Parent.MouseLeave:Connect(leave)
  644. script.Parent.Button.MouseButton1Down:Connect(enter)
  645. script.Parent.Button.MouseButton1Up:Connect(leave)
  646. script.Parent.Button.MouseButton1Click:Connect(function()
  647. enter()
  648. task.wait(0.2)
  649. leave()
  650. end)
  651. end;
  652. task.spawn(C_2d);
  653. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.PlayButton.Function
  654. local function C_32()
  655. local script = G2L["32"];
  656. local function enter()
  657. script.Parent.Size = UDim2.new(0, 44, 0, 44)
  658. script.Parent.Icon.ImageColor3 = Color3.fromRGB(255,255,255)
  659. end
  660. local function leave()
  661. script.Parent.Size = UDim2.new(0, 38, 0, 38)
  662. script.Parent.Icon.ImageColor3 = Color3.fromRGB(200,200,200)
  663. end
  664. script.Parent.MouseEnter:Connect(enter)
  665. script.Parent.MouseLeave:Connect(leave)
  666. script.Parent.Button.MouseButton1Down:Connect(enter)
  667. script.Parent.Button.MouseButton1Up:Connect(leave)
  668. script.Parent.Button.MouseButton1Click:Connect(function()
  669. enter()
  670. G2L["1"].TRACKSOUND.Playing = not G2L["1"].TRACKSOUND.Playing
  671. if G2L["1"].TRACKSOUND.Playing then
  672. script.Parent.Icon.Image = "rbxassetid://7072719997"
  673. else
  674. script.Parent.Icon.Image = "rbxassetid://7072720676"
  675. end
  676. task.wait(0.2)
  677. leave()
  678. end)
  679. G2L["1"].TRACKSOUND.DidLoop:Connect(function()
  680. G2L["1"].TRACKSOUND:Pause()
  681. G2L["1"].TRACKSOUND.TimePosition = 0
  682. script.Parent.Icon.Image = "rbxassetid://7072720676"
  683. end)
  684. G2L["1"].TRACKSOUND.Played:Connect(function()
  685. G2L["1"].TRACKSOUND.TimePosition = 0
  686. script.Parent.Icon.Image = "rbxassetid://7072719997"
  687. end)
  688. end;
  689. task.spawn(C_32);
  690. -- StarterGui.SP.Holder.TrackList.PLAYING.TRACKOPTIONS.OPTIONS.Next.Function
  691. local function C_37()
  692. local script = G2L["37"];
  693. local function enter()
  694. script.Parent.Size = UDim2.new(0, 32, 0, 32)
  695. script.Parent.Icon.ImageColor3 = Color3.fromRGB(255,255,255)
  696. end
  697. local function leave()
  698. script.Parent.Size = UDim2.new(0, 28, 0, 28)
  699. script.Parent.Icon.ImageColor3 = Color3.fromRGB(200,200,200)
  700. end
  701. script.Parent.MouseEnter:Connect(enter)
  702. script.Parent.MouseLeave:Connect(leave)
  703. script.Parent.Button.MouseButton1Down:Connect(enter)
  704. script.Parent.Button.MouseButton1Up:Connect(leave)
  705. script.Parent.Button.MouseButton1Click:Connect(function()
  706. enter()
  707. task.wait(0.2)
  708. leave()
  709. end)
  710. end;
  711. task.spawn(C_37);
  712. -- StarterGui.SP.Holder.Topbar.Close.Function
  713. local function C_46()
  714. local script = G2L["46"];
  715. local color1 = Color3.fromRGB(30, 30, 30)
  716. local color2 = Color3.fromRGB(8, 8, 8)
  717. local function light()
  718. script.Parent.BackgroundColor3 = color1
  719. script.Parent["cover-left"].BackgroundColor3 = color1
  720. script.Parent["cover-bottom"].BackgroundColor3 = color1
  721. end
  722. local function dark()
  723. script.Parent.BackgroundColor3 = color2
  724. script.Parent["cover-left"].BackgroundColor3 = color2
  725. script.Parent["cover-bottom"].BackgroundColor3 = color2
  726. end
  727. script.Parent.MouseEnter:Connect(light)
  728. script.Parent.MouseLeave:Connect(dark)
  729. script.Parent.CloseButton.MouseButton1Down:Connect(light)
  730. script.Parent.CloseButton.MouseButton1Up:Connect(dark)
  731. script.Parent.CloseButton.MouseButton1Click:Connect(function()
  732. light()
  733. local ui = G2L["1"]
  734. local t = game:GetService("TweenService")
  735. t:Create(ui.UIScale, TweenInfo.new(0.3, Enum.EasingStyle.Quint), { Scale = 0 }):Play()
  736. task.wait(0.3)
  737. delfolder(config.Tick.."_Spotify")
  738. ui:Destroy()
  739. end)
  740. end;
  741. task.spawn(C_46);
  742.  
  743. local loading = true
  744.  
  745. local currentTrackIndex = 1
  746.  
  747. local function set_track(title, cover, art, track, keep)
  748. if loading then
  749. local old_id
  750. if keep == false then
  751. G2L["3b"]["Image"] = getcustomasset(cover);
  752. G2L["1c"]["Text"] = title;
  753. G2L["1e"]["Text"] = art;
  754. G2L["1"].TRACKSOUND.TimePosition = 0
  755. G2L["1"].TRACKSOUND.SoundId = getcustomasset(track);
  756. end
  757. else
  758. G2L["3b"]["Image"] = getcustomasset(cover);
  759. G2L["1c"]["Text"] = title;
  760. G2L["1e"]["Text"] = art;
  761. G2L["1"].TRACKSOUND.TimePosition = 0
  762. G2L["1"].TRACKSOUND.SoundId = getcustomasset(track);
  763. end
  764. end
  765. local function next_track()
  766. local order = {}
  767. for _, track in pairs(config.Tracks) do
  768. table.insert(order, track)
  769. end
  770. currentTrackIndex = currentTrackIndex + 1
  771. if currentTrackIndex > #order then
  772. currentTrackIndex = 1
  773. end
  774. local nextTrack = order[currentTrackIndex]
  775. local configFolder = config.file.."/"..nextTrack.title.."_".."Config"
  776. local coverFile = configFolder.."/"..nextTrack.title.."_".."Cover.png"
  777. local trackFile = configFolder.."/"..nextTrack.title.."_".."Track.mp4"
  778. set_track(nextTrack.title, coverFile, nextTrack.artists, trackFile, false)
  779. G2L["1"].TRACKSOUND:Play()
  780. return nextTrack
  781. end
  782. local function previous_track()
  783. local order = {}
  784. for _, track in pairs(config.Tracks) do
  785. table.insert(order, track)
  786. end
  787. currentTrackIndex = currentTrackIndex - 1
  788. if currentTrackIndex < 1 then
  789. currentTrackIndex = #order
  790. end
  791. local prevTrack = order[currentTrackIndex]
  792. local configFolder = config.file.."/"..prevTrack.title.."_".."Config"
  793. local coverFile = configFolder.."/"..prevTrack.title.."_".."Cover.png"
  794. local trackFile = configFolder.."/"..prevTrack.title.."_".."Track.mp4"
  795. set_track(prevTrack.title, coverFile, prevTrack.artists, trackFile, false)
  796. G2L["1"].TRACKSOUND:Play()
  797. return prevTrack
  798. end
  799. local function add_playist(title, cover, artist, track)
  800.  
  801. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1
  802. G2L["9"] = Instance.new("Frame", G2L["7"]);
  803. G2L["9"]["BorderSizePixel"] = 0;
  804. G2L["9"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  805. G2L["9"]["BackgroundTransparency"] = 1;
  806. G2L["9"]["Size"] = UDim2.new(0, 249, 0, 81);
  807. G2L["9"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  808. G2L["9"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  809. G2L["9"]["Name"] = title;
  810.  
  811. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.INFO
  812. G2L["a"] = Instance.new("Frame", G2L["9"]);
  813. G2L["a"]["BorderSizePixel"] = 0;
  814. G2L["a"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  815. G2L["a"]["AnchorPoint"] = Vector2.new(0, 0.5);
  816. G2L["a"]["BackgroundTransparency"] = 1;
  817. G2L["a"]["Size"] = UDim2.new(0, 134, 0, 55);
  818. G2L["a"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  819. G2L["a"]["Position"] = UDim2.new(0, 66, 0, 40);
  820. G2L["a"]["Name"] = [[INFO]];
  821.  
  822. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.INFO.UIListLayout
  823. G2L["b"] = Instance.new("UIListLayout", G2L["a"]);
  824. G2L["b"]["HorizontalAlignment"] = Enum.HorizontalAlignment.Center;
  825. G2L["b"]["SortOrder"] = Enum.SortOrder.LayoutOrder;
  826.  
  827. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.INFO.TRACKNAME
  828. G2L["c"] = Instance.new("TextLabel", G2L["a"]);
  829. G2L["c"]["TextTruncate"] = Enum.TextTruncate.AtEnd;
  830. G2L["c"]["BorderSizePixel"] = 0;
  831. G2L["c"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  832. G2L["c"]["TextXAlignment"] = Enum.TextXAlignment.Left;
  833. G2L["c"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
  834. G2L["c"]["TextSize"] = 14;
  835. G2L["c"]["TextColor3"] = Color3.fromRGB(255, 255, 255);
  836. G2L["c"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  837. G2L["c"]["Size"] = UDim2.new(1, 0, 0.5, 0);
  838. G2L["c"]["ClipsDescendants"] = true;
  839. G2L["c"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  840. G2L["c"]["Text"] = title;
  841. G2L["c"]["Name"] = [[TRACKNAME]];
  842. G2L["c"]["BackgroundTransparency"] = 1;
  843. G2L["c"]["Position"] = UDim2.new(0.13469387590885162, 0, 0.16049382090568542, 0);
  844.  
  845. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.INFO.TRACKNAME.UIPadding
  846. G2L["d"] = Instance.new("UIPadding", G2L["c"]);
  847. G2L["d"]["PaddingLeft"] = UDim.new(0, 8);
  848.  
  849. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.INFO.TRACKARTIST
  850. G2L["e"] = Instance.new("TextLabel", G2L["a"]);
  851. G2L["e"]["TextWrapped"] = true;
  852. G2L["e"]["TextTruncate"] = Enum.TextTruncate.AtEnd;
  853. G2L["e"]["BorderSizePixel"] = 0;
  854. G2L["e"]["TextYAlignment"] = Enum.TextYAlignment.Top;
  855. G2L["e"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  856. G2L["e"]["TextXAlignment"] = Enum.TextXAlignment.Left;
  857. G2L["e"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Bold, Enum.FontStyle.Normal);
  858. G2L["e"]["TextSize"] = 12;
  859. G2L["e"]["TextColor3"] = Color3.fromRGB(81, 81, 81);
  860. G2L["e"]["AutomaticSize"] = Enum.AutomaticSize.Y;
  861. G2L["e"]["Size"] = UDim2.new(1, 0, 0.5, 0);
  862. G2L["e"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  863. G2L["e"]["Text"] = artist;
  864. G2L["e"]["Name"] = [[TRACKARTIST]];
  865. G2L["e"]["BackgroundTransparency"] = 1;
  866. G2L["e"]["Position"] = UDim2.new(0.13469387590885162, 0, 0.4938271641731262, 0);
  867.  
  868. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.INFO.TRACKARTIST.UIPadding
  869. G2L["f"] = Instance.new("UIPadding", G2L["e"]);
  870. G2L["f"]["PaddingLeft"] = UDim.new(0, 8);
  871.  
  872. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.TrackCover
  873. G2L["10"] = Instance.new("ImageLabel", G2L["9"]);
  874. G2L["10"]["BorderSizePixel"] = 0;
  875. G2L["10"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  876. G2L["10"]["AnchorPoint"] = Vector2.new(0, 0.5);
  877. G2L["10"]["Image"] = [[rbxasset://textures/ui/GuiImagePlaceholder.png]];
  878. G2L["10"]["Size"] = UDim2.new(0, 55, 0, 55);
  879. G2L["10"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  880. G2L["10"]["Name"] = [[TrackCover]];
  881. G2L["10"]["Position"] = UDim2.new(0.024000000208616257, 0, 0.5, 0);
  882.  
  883. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.TrackCover.UICorner
  884. G2L["11"] = Instance.new("UICorner", G2L["10"]);
  885.  
  886.  
  887. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.PlayButton
  888. G2L["12"] = Instance.new("Frame", G2L["9"]);
  889. G2L["12"]["ZIndex"] = 2;
  890. G2L["12"]["BorderSizePixel"] = 0;
  891. G2L["12"]["BackgroundColor3"] = Color3.fromRGB(9, 9, 9);
  892. G2L["12"]["AnchorPoint"] = Vector2.new(0, 0.5);
  893. G2L["12"]["BackgroundTransparency"] = 1;
  894. G2L["12"]["Size"] = UDim2.new(0, 38, 0, 38);
  895. G2L["12"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  896. G2L["12"]["Position"] = UDim2.new(0.800000011920929, 0, 0, 40);
  897. G2L["12"]["Name"] = [[PlayButton]];
  898.  
  899. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.PlayButton.Function
  900. G2L["13"] = Instance.new("LocalScript", G2L["12"]);
  901. G2L["13"]["Name"] = [[Function]];
  902.  
  903. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.PlayButton.UICorner
  904. G2L["14"] = Instance.new("UICorner", G2L["12"]);
  905. G2L["14"]["CornerRadius"] = UDim.new(1, 0);
  906.  
  907. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.PlayButton.Button
  908. G2L["15"] = Instance.new("ImageButton", G2L["12"]);
  909. G2L["15"]["BorderSizePixel"] = 0;
  910. G2L["15"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  911. G2L["15"]["Size"] = UDim2.new(1, 0, 1, 0);
  912. G2L["15"]["Name"] = [[Button]];
  913. G2L["15"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  914. G2L["15"]["BackgroundTransparency"] = 1;
  915.  
  916. -- StarterGui.SP.Holder.TrackList.TrackList.SONG1.PlayButton.Icon
  917. G2L["16"] = Instance.new("ImageLabel", G2L["12"]);
  918. G2L["16"]["ZIndex"] = 2;
  919. G2L["16"]["BorderSizePixel"] = 0;
  920. G2L["16"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  921. G2L["16"]["ImageColor3"] = Color3.fromRGB(201, 201, 201);
  922. G2L["16"]["AnchorPoint"] = Vector2.new(0.5, 0.5);
  923. G2L["16"]["Image"] = [[rbxassetid://7072720676]];
  924. G2L["16"]["Size"] = UDim2.new(0.699999988079071, 0, 0.699999988079071, 0);
  925. G2L["16"]["BorderColor3"] = Color3.fromRGB(0, 0, 0);
  926. G2L["16"]["Name"] = [[Icon]];
  927. G2L["16"]["BackgroundTransparency"] = 1;
  928. G2L["16"]["Position"] = UDim2.new(0.5, 0, 0.5, 0);
  929.  
  930. local script = G2L["13"];
  931. local function enter()
  932. script.Parent.Icon.ImageColor3 = Color3.fromRGB(255,255,255)
  933. end
  934. local function leave()
  935. script.Parent.Icon.ImageColor3 = Color3.fromRGB(200,200,200)
  936. end
  937. script.Parent.MouseEnter:Connect(enter)
  938. script.Parent.MouseLeave:Connect(leave)
  939. script.Parent.Button.MouseButton1Down:Connect(enter)
  940. script.Parent.Button.MouseButton1Up:Connect(leave)
  941. script.Parent.Button.MouseButton1Click:Connect(function()
  942. enter()
  943. repeat
  944. next_track()
  945. wait()
  946. until next_track().title == title
  947. task.wait(0.2)
  948. leave()
  949. end)
  950.  
  951. G2L["10"]["Image"] = getcustomasset(cover);
  952.  
  953. end
  954. G2L["39"].MouseButton1Click:Connect(next_track)
  955. G2L["2f"].MouseButton1Click:Connect(previous_track)
  956. G2L["1"].TRACKSOUND.DidLoop:Connect(function()
  957. wait(0.2)
  958. next_track()
  959. end)
  960.  
  961. writefile(config.file.."/Logo.png", game:HttpGet("https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Spotify_logo_without_text.svg/2048px-Spotify_logo_without_text.svg.png"))
  962. G2L["4b"]["Image"] = getcustomasset(config.file.."/Logo.png");
  963. local order = {}
  964. for i,v in pairs(config.Tracks) do
  965. local configFolder = config.file.."/"..i.."_".."Config"
  966. newfolder(configFolder)
  967. local coverFile = configFolder.."/"..i.."_".."Cover.png"
  968. local trackFile = configFolder.."/"..i.."_".."Track.mp4"
  969. writefile(coverFile, game:HttpGet(v.cover))
  970. writefile(trackFile, game:HttpGet(v.track))
  971. add_playist(i, coverFile, v.artists, trackFile)
  972. for _, track in pairs(config.Tracks) do
  973. table.insert(order, track)
  974. end
  975. local configFolder = config.file.."/"..order[1].title.."_".."Config"
  976. local coverFile = configFolder.."/"..order[1].title.."_".."Cover.png"
  977. local trackFile = configFolder.."/"..order[1].title.."_".."Track.mp4"
  978. if G2L["4d"]["SoundId"] == "0" then
  979. G2L["4d"]["SoundId"] = getcustomasset(trackFile);
  980. G2L["3b"]["Image"] = getcustomasset(coverFile);
  981. G2L["1c"]["Text"] = order[1].title;
  982. G2L["1e"]["Text"] = order[1].artists;
  983. G2L["1"].TRACKSOUND.TimePosition = 0
  984. G2L["1"].TRACKSOUND.SoundId = getcustomasset(trackFile);
  985. end
  986. set_track(order[1].title, coverFile, order[1].artists, trackFile, true)
  987. end
  988. loading = false
  989. print("Finished loading")
  990.  
  991. return G2L["1"];
  992.  
  993. end
  994.  
  995. return ui
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement