Advertisement
ERROR_CODE

Music

Jan 27th, 2024 (edited)
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.42 KB | None | 0 0
  1. if game:GetService("CoreGui"):FindFirstChild("UIGui") then
  2. game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
  3. end
  4. local UIGui = Instance.new("ScreenGui")
  5. local SondFrameBackground = Instance.new("Frame")
  6. local SondFrame = Instance.new("ImageLabel")
  7. local MainSondFrame = Instance.new("Frame")
  8. local SoundTextBox = Instance.new("TextBox")
  9. local SondFrameBackgroundUICorner = Instance.new("UICorner")
  10. local SondFrameUICorner = Instance.new("UICorner")
  11. local MainSondFrameUICorner = Instance.new("UICorner")
  12. local SoundTextBoxUICorner = Instance.new("UICorner")
  13. local CoreSound = Instance.new("Sound")
  14. local Stop_PlayButton = Instance.new("ImageButton")
  15. local AudioName = Instance.new("TextLabel")
  16. local Stop_PlayButtonBackground = Instance.new("Frame")
  17. local Stop_PlayButtonBackgroundUICorner = Instance.new("UICorner")
  18. local Stop_PlayButtonBackground_2 = Instance.new("Frame")
  19. local Stop_PlayButtonBackgroundUICorner_2 = Instance.new("UICorner")
  20. local Volume = 1
  21. local SaveButtonBackground_2 = Instance.new("Frame")
  22. local SaveButtonBackgroundUICorner_2 = Instance.new("UICorner")
  23. local SaveButton_2 = Instance.new("ImageButton")
  24. local SaveButtonUICorner_2 = Instance.new("UICorner")
  25. local PlaylistButtonBackground = Instance.new("Frame")
  26. local PlaylistButtonBackgroundUICorner = Instance.new("UICorner")
  27. local PlaylistButtonBackground_2 = Instance.new("Frame")
  28. local PlaylistButtonBackgroundUICorner_2 = Instance.new("UICorner")
  29. local PlaylistButton = Instance.new("ImageButton")
  30. local VolumeFrame = Instance.new("Frame")
  31. local VolumeFrameUICorner = Instance.new("UICorner")
  32. local VolumeUpButtonBackground = Instance.new("Frame")
  33. local VolumeUpButtonBackgroundUICorner = Instance.new("UICorner")
  34. local VolumeUpButton = Instance.new("ImageButton")
  35. local VolumeUpButtonUICorner = Instance.new("UICorner")
  36. local VolumeDownButtonBackground = Instance.new("Frame")
  37. local VolumeDownButtonBackgroundUICorner = Instance.new("UICorner")
  38. local VolumeDownButton = Instance.new("ImageButton")
  39. local VolumeDownButtonUICorner = Instance.new("UICorner")
  40. local VolumeUpButton_2 = Instance.new("ImageButton")
  41. local VolumeUpButtonUICorner_2 = Instance.new("UICorner")
  42. local VolumeDownButton_2 = Instance.new("ImageButton")
  43. local VolumeDownButtonUICorner_2 = Instance.new("UICorner")
  44.  
  45. UIGui.Name = "UIGui"
  46. UIGui.Parent = game.CoreGui
  47. game.CoreGui.UIGui.Enabled = true
  48.  
  49. CoreSound.Parent = game:GetService("SoundService")
  50. CoreSound.Playing = true
  51. CoreSound.Looped = true
  52. CoreSound.Volume = Volume
  53. CoreSound:Stop()
  54.  
  55. SondFrameBackground.Name = "SondFrameBackground"
  56. SondFrameBackground.Parent = UIGui
  57. SondFrameBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  58. SondFrameBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  59. SondFrameBackground.Position = UDim2.new(0.5, 0, 0.5, 0)
  60. SondFrameBackground.Size = UDim2.new(0, 350, 0, 400)
  61.  
  62. SondFrameBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  63. SondFrameBackgroundUICorner.Parent = SondFrameBackground
  64.  
  65. SondFrame.Name = "SondFrame"
  66. SondFrame.Parent = SondFrameBackground
  67. SondFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  68. SondFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  69. SondFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  70. SondFrame.Size = UDim2.new(0, 345, 0, 395)
  71. SondFrame.Image = "rbxassetid://16139850662"
  72.  
  73. SondFrameUICorner.CornerRadius = UDim.new(0, 15)
  74. SondFrameUICorner.Parent = SondFrame
  75.  
  76. MainSondFrame.Name = "MainSondFrame"
  77. MainSondFrame.Parent = SondFrame
  78. MainSondFrame.BackgroundTransparency = 0.4
  79. MainSondFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  80. MainSondFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  81. MainSondFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
  82. MainSondFrame.Size = UDim2.new(0, 345, 0, 395)
  83.  
  84. MainSondFrameUICorner.CornerRadius = UDim.new(0, 15)
  85. MainSondFrameUICorner.Parent = MainSondFrame
  86.  
  87. SoundTextBox.Name = "SoundTextBox"
  88. SoundTextBox.Parent = MainSondFrame
  89. SoundTextBox.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  90. SoundTextBox.BackgroundTransparency = 0.4
  91. SoundTextBox.Position = UDim2.new(0.0055, 0, 0.01, 0)
  92. SoundTextBox.Size = UDim2.new(0, 340, 0, 25)
  93. SoundTextBox.ClearTextOnFocus = false
  94. SoundTextBox.Font = Enum.Font.SourceSansBold
  95. SoundTextBox.PlaceholderText = "Sound Id here"
  96. SoundTextBox.Text = ""
  97. SoundTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
  98. SoundTextBox.TextTransparency = 0
  99. SoundTextBox.TextScaled = true
  100. SoundTextBox.TextSize = 14.000
  101. SoundTextBox.TextWrapped = true
  102.  
  103. SoundTextBoxUICorner.CornerRadius = UDim.new(0, 15)
  104. SoundTextBoxUICorner.Parent = SoundTextBox
  105.  
  106. Stop_PlayButtonBackground.Name = "Stop_PlayButtonBackground"
  107. Stop_PlayButtonBackground.Parent = MainSondFrame
  108. Stop_PlayButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  109. Stop_PlayButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  110. Stop_PlayButtonBackground.Position = UDim2.new(0.5, 0, 0.5, 0)
  111. Stop_PlayButtonBackground.Size = UDim2.new(0, 105, 0, 105)
  112.  
  113. Stop_PlayButtonBackgroundUICorner.CornerRadius = UDim.new(1, 0)
  114. Stop_PlayButtonBackgroundUICorner.Parent = Stop_PlayButtonBackground
  115.  
  116. Stop_PlayButtonBackground_2.Name = "Stop_PlayButtonBackground_2"
  117. Stop_PlayButtonBackground_2.Parent = Stop_PlayButtonBackground
  118. Stop_PlayButtonBackground_2.AnchorPoint = Vector2.new(0.5, 0.5)
  119. Stop_PlayButtonBackground_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  120. Stop_PlayButtonBackground_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  121. Stop_PlayButtonBackground_2.Size = UDim2.new(0, 100, 0, 100)
  122.  
  123. Stop_PlayButtonBackgroundUICorner_2.CornerRadius = UDim.new(1, 0)
  124. Stop_PlayButtonBackgroundUICorner_2.Parent = Stop_PlayButtonBackground_2
  125.  
  126. Stop_PlayButton.Name = "Stop_PlayButton"
  127. Stop_PlayButton.Parent = Stop_PlayButtonBackground_2
  128. Stop_PlayButton.AnchorPoint = Vector2.new(0.5, 0.5)
  129. Stop_PlayButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  130. Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
  131. Stop_PlayButton.Size = UDim2.new(0, 80, 0, 80)
  132. Stop_PlayButton.BackgroundTransparency = 1
  133. Stop_PlayButton.Image = "rbxassetid://16139639068"
  134.  
  135. AudioName.Name = "AudioName"
  136. AudioName.Parent = MainSondFrame
  137. AudioName.BackgroundTransparency = 1
  138. AudioName.Position = UDim2.new(0.0055, 0, 0.1, 0)
  139. AudioName.Size = UDim2.new(0, 340, 0, 25)
  140. AudioName.Font = Enum.Font.SourceSansBold
  141. AudioName.Text = ""
  142. AudioName.TextColor3 = Color3.fromRGB(192, 192, 192)
  143. AudioName.TextScaled = true
  144. AudioName.TextSize = 14.000
  145. AudioName.TextWrapped = true
  146. AudioName.TextXAlignment = Enum.TextXAlignment.Left
  147.  
  148. SaveButtonBackground_2.Name = "SaveButtonBackground_2"
  149. SaveButtonBackground_2.Parent = MainSondFrame
  150. SaveButtonBackground_2.AnchorPoint = Vector2.new(0.5, 0.5)
  151. SaveButtonBackground_2.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  152. SaveButtonBackground_2.Position = UDim2.new(0.2, 0, 0.5, 0)
  153. SaveButtonBackground_2.Size = UDim2.new(0, 55, 0, 55)
  154.  
  155. SaveButtonBackgroundUICorner_2.CornerRadius = UDim.new(1, 0)
  156. SaveButtonBackgroundUICorner_2.Parent = SaveButtonBackground_2
  157.  
  158. SaveButton_2.Name = "SaveButton_2"
  159. SaveButton_2.Parent = SaveButtonBackground_2
  160. SaveButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
  161. SaveButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  162. SaveButton_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  163. SaveButton_2.Size = UDim2.new(0, 50, 0, 50)
  164. SaveButton_2.Image = "rbxassetid://16139574980"
  165. SaveButton_2.AutoButtonColor = false
  166.  
  167. SaveButtonUICorner_2.CornerRadius = UDim.new(1, 0)
  168. SaveButtonUICorner_2.Parent = SaveButton_2
  169.  
  170. PlaylistButtonBackground.Name = "PlaylistButtonBackground"
  171. PlaylistButtonBackground.Parent = MainSondFrame
  172. PlaylistButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  173. PlaylistButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  174. PlaylistButtonBackground.Position = UDim2.new(0.8, 0, 0.5, 0)
  175. PlaylistButtonBackground.Size = UDim2.new(0, 55, 0, 55)
  176.  
  177. PlaylistButtonBackgroundUICorner.CornerRadius = UDim.new(1, 0)
  178. PlaylistButtonBackgroundUICorner.Parent = PlaylistButtonBackground
  179.  
  180. PlaylistButtonBackground_2.Name = "PlaylistButtonBackground_2"
  181. PlaylistButtonBackground_2.Parent = PlaylistButtonBackground
  182. PlaylistButtonBackground_2.AnchorPoint = Vector2.new(0.5, 0.5)
  183. PlaylistButtonBackground_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  184. PlaylistButtonBackground_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  185. PlaylistButtonBackground_2.Size = UDim2.new(0, 50, 0, 50)
  186.  
  187. PlaylistButtonBackgroundUICorner_2.CornerRadius = UDim.new(1, 0)
  188. PlaylistButtonBackgroundUICorner_2.Parent = PlaylistButtonBackground_2
  189.  
  190. PlaylistButton.Name = "PlaylistButton"
  191. PlaylistButton.Parent = PlaylistButtonBackground_2
  192. PlaylistButton.AnchorPoint = Vector2.new(0.5, 0.5)
  193. PlaylistButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  194. PlaylistButton.Position = UDim2.new(0.55, 0, 0.55, 0)
  195. PlaylistButton.Size = UDim2.new(0, 40, 0, 40)
  196. PlaylistButton.Image = "rbxassetid://16139588106"
  197. PlaylistButton.BackgroundTransparency = 1
  198.  
  199. VolumeDownButtonBackground.Name = "VolumeDownButtonBackground"
  200. VolumeDownButtonBackground.Parent = MainSondFrame
  201. VolumeDownButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  202. VolumeDownButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  203. VolumeDownButtonBackground.Position = UDim2.new(0.1, 0, 0.9, 0)
  204. VolumeDownButtonBackground.Size = UDim2.new(0, 50, 0, 35)
  205.  
  206. VolumeDownButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  207. VolumeDownButtonBackgroundUICorner.Parent = VolumeDownButtonBackground
  208.  
  209. VolumeUpButtonBackground.Name = "VolumeUpButtonBackground"
  210. VolumeUpButtonBackground.Parent = MainSondFrame
  211. VolumeUpButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
  212. VolumeUpButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
  213. VolumeUpButtonBackground.Position = UDim2.new(0.9, 0, 0.9, 0)
  214. VolumeUpButtonBackground.Size = UDim2.new(0, 50, 0, 35)
  215.  
  216. VolumeUpButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
  217. VolumeUpButtonBackgroundUICorner.Parent = VolumeUpButtonBackground
  218.  
  219. VolumeUpButton.Name = "VolumeUpButton"
  220. VolumeUpButton.Parent = VolumeUpButtonBackground
  221. VolumeUpButton.AnchorPoint = Vector2.new(0.5, 0.5)
  222. VolumeUpButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  223. VolumeUpButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  224. VolumeUpButton.Size = UDim2.new(0, 46, 0, 32)
  225. VolumeUpButton.Image = "rbxassetid://16164520143"
  226. VolumeUpButton.AutoButtonColor = false
  227.  
  228. VolumeUpButtonUICorner.CornerRadius = UDim.new(0, 12)
  229. VolumeUpButtonUICorner.Parent = VolumeUpButton
  230.  
  231. VolumeDownButton.Name = "VolumeDownButton"
  232. VolumeDownButton.Parent = VolumeDownButtonBackground
  233. VolumeDownButton.AnchorPoint = Vector2.new(0.5, 0.5)
  234. VolumeDownButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  235. VolumeDownButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  236. VolumeDownButton.Size = UDim2.new(0, 46, 0, 32)
  237. VolumeDownButton.Image = "rbxassetid://16164522333"
  238. VolumeDownButton.AutoButtonColor = false
  239.  
  240. VolumeDownButtonUICorner.CornerRadius = UDim.new(0, 12)
  241. VolumeDownButtonUICorner.Parent = VolumeDownButton
  242.  
  243. VolumeDownButton_2.Name = "VolumeDownButton_2"
  244. VolumeDownButton_2.Parent = VolumeDownButtonBackground
  245. VolumeDownButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
  246. VolumeDownButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  247. VolumeDownButton_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  248. VolumeDownButton_2.Size = UDim2.new(0, 46, 0, 32)
  249. VolumeDownButton_2.Image = "rbxassetid://16164522333"
  250. VolumeDownButton_2.AutoButtonColor = false
  251.  
  252. VolumeDownButtonUICorner_2.CornerRadius = UDim.new(0, 12)
  253. VolumeDownButtonUICorner_2.Parent = VolumeDownButton_2
  254.  
  255. VolumeUpButton_2.Name = "VolumeUpButton_2"
  256. VolumeUpButton_2.Parent = VolumeUpButtonBackground
  257. VolumeUpButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
  258. VolumeUpButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  259. VolumeUpButton_2.Position = UDim2.new(0.5, 0, 0.5, 0)
  260. VolumeUpButton_2.Size = UDim2.new(0, 46, 0, 32)
  261. VolumeUpButton_2.Image = "rbxassetid://16164520143"
  262. VolumeUpButton_2.AutoButtonColor = false
  263.  
  264. VolumeUpButtonUICorner_2.CornerRadius = UDim.new(0, 12)
  265. VolumeUpButtonUICorner_2.Parent = VolumeUpButton_2
  266.  
  267. VolumeDownButton_2.Visible = false
  268. VolumeUpButton_2.Visible = false
  269.  
  270. VolumeFrame.Name = "VolumeFrame"
  271. VolumeFrame.Parent = MainSondFrame
  272. VolumeFrame.Position = UDim2.new(0.2, 0, 0.895, 0)
  273. VolumeFrame.Size = UDim2.new(0, 10, 0, 5)
  274. VolumeFrame.BackgroundColor3 = Color3.new(255, 255, 255)
  275.  
  276. VolumeFrameUICorner.CornerRadius = UDim.new(1, 0)
  277. VolumeFrameUICorner.Parent = VolumeFrame
  278.  
  279. function createfolders(path)
  280.  local pathtbl = string.split(path, "/")
  281.  for i, v in pairs(pathtbl) do
  282.   if i == 1 then
  283.    if not isfolder(v) then
  284.     makefolder(v)
  285.    end
  286.   else
  287.    local newpath = pathtbl[1]
  288.    for i2=2, i-1 do
  289.     newpath = newpath.. "/" ..pathtbl[i2]
  290.    end
  291.    newpath = newpath.. "/" ..v
  292.    if not isfolder(newpath) then
  293.     makefolder(newpath)
  294.    end
  295.   end
  296.  end
  297. end
  298.  
  299. if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS") and isfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS") and isfolder("ECCS_V3") then
  300. delfolder("ECCS_V3")
  301. end
  302.  
  303. createfolders("ECCS_V3/CoreSystem/Files")
  304.  
  305. if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS") then
  306. writefile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS", " ")
  307. end
  308.  
  309. VolumeUpButton.MouseButton1Click:Connect(function()
  310. Volume = Volume + 0.5
  311. end)
  312.  
  313. VolumeDownButton.MouseButton1Click:Connect(function()
  314. Volume = Volume - 0.5
  315. end)
  316.  
  317. SaveButton_2.MouseButton1Click:Connect(function()
  318. if Stop_PlayButton.Image == "rbxassetid://16139639068" and SoundTextBox.Text == "" then
  319. SoundTextBox.PlaceholderText = "Enter Id here"
  320. wait(1)
  321. SoundTextBox.PlaceholderText = "Sound Id here"
  322. else
  323. SoundTextBox.PlaceholderText = "Sound Id here"
  324. if SaveButton_2.Image == "rbxassetid://16139574980" then
  325. SaveButton_2.Image = "rbxassetid://16139703752"
  326. writefile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS", ""..SoundTextBox.Text)
  327. else
  328. if SaveButton_2.Image == "rbxassetid://16139703752" then
  329. SaveButton_2.Image = "rbxassetid://16139574980"
  330. writefile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS", " ")
  331. end
  332. end
  333. end
  334. end)
  335.  
  336. PlaylistButton.MouseButton1Click:Connect(function()
  337. local ReadECCSV3_2 = readfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS")
  338. SoundTextBox.Text = ReadECCSV3_2
  339. if SoundTextBox.Text == " " then
  340. SoundTextBox.Text = ""
  341. end
  342. end)
  343.  
  344. Stop_PlayButton.MouseButton1Click:Connect(function()
  345. if Stop_PlayButton.Image == "rbxassetid://16139639068" and SoundTextBox.Text == "" then
  346. SoundTextBox.PlaceholderText = "Enter Id here"
  347. wait(1)
  348. SoundTextBox.PlaceholderText = "Sound Id here"
  349. else
  350. SoundTextBox.PlaceholderText = "Sound Id here"
  351. if Stop_PlayButton.Image == "rbxassetid://16139639068" then
  352. Stop_PlayButton.Image = "rbxassetid://16139637058"
  353. Stop_PlayButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  354. Audio = game:GetService("MarketplaceService"):GetProductInfo(SoundTextBox.Text)
  355. AudioName.Text = Audio.Name
  356. CoreSound.SoundId = "rbxassetid://"..SoundTextBox.Text
  357. CoreSound:Play()
  358. else
  359. if Stop_PlayButton.Image == "rbxassetid://16139637058" then
  360. Stop_PlayButton.Image = "rbxassetid://16139639068"
  361. Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
  362. CoreSound:Stop()
  363. end
  364. end
  365. end
  366. end)
  367.  
  368. SoundTextBox.FocusLost:Connect(function(enterPressed)
  369. if enterPressed then
  370. if Stop_PlayButton.Image == "rbxassetid://16139639068" and SoundTextBox.Text == "" then
  371. SoundTextBox.PlaceholderText = "Enter Id here"
  372. wait(1)
  373. SoundTextBox.PlaceholderText = "Sound Id here"
  374. else
  375. SoundTextBox.PlaceholderText = "Sound Id here"
  376. if Stop_PlayButton.Image == "rbxassetid://16139639068" then
  377. Stop_PlayButton.Image = "rbxassetid://16139637058"
  378. Stop_PlayButton.Position = UDim2.new(0.5, 0, 0.5, 0)
  379. Audio = game:GetService("MarketplaceService"):GetProductInfo(SoundTextBox.Text)
  380. AudioName.Text = Audio.Name
  381. CoreSound.SoundId = "rbxassetid://"..SoundTextBox.Text
  382. CoreSound:Play()
  383. else
  384. if Stop_PlayButton.Image == "rbxassetid://16139637058" then
  385. Stop_PlayButton.Image = "rbxassetid://16139639068"
  386. Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
  387. CoreSound:Stop()
  388. end
  389. end
  390. end
  391. end
  392. end)
  393.  
  394. spawn(function()
  395. repeat
  396. wait()
  397. local ReadECCSV3_2 = readfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS")
  398. if SoundTextBox.Text == ReadECCSV3_2 then
  399. SaveButton_2.Image = "rbxassetid://16139703752"
  400. else
  401. if SoundTextBox.Text ~= ReadECCSV3_2 then
  402. SaveButton_2.Image = "rbxassetid://16139574980"
  403. end
  404. if SoundTextBox.Text == "" then
  405. SaveButton_2.Image = "rbxassetid://16139574980"
  406. Stop_PlayButton.Image = "rbxassetid://16139639068"
  407. Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
  408. CoreSound:Stop()
  409. AudioName.Text = ""
  410. end
  411. end
  412. until
  413. SaveButton_2 == nil
  414. end)
  415.  
  416. spawn(function()
  417. repeat
  418. wait()
  419. CoreSound.Volume = Volume
  420. if Volume == 0 then
  421. VolumeFrame:TweenSize(UDim2.new(0, 1, 0, 5), "Out", "Linear", 0.5)
  422. VolumeUpButton.Visible = true
  423. VolumeDownButton.Visible = false
  424. VolumeDownButton_2.Visible = true
  425. VolumeUpButton_2.Visible = false
  426. else
  427. if Volume == 0.5 then
  428. VolumeFrame:TweenSize(UDim2.new(0, 55, 0, 5), "Out", "Linear", 0.5)
  429. VolumeUpButton.Visible = true
  430. VolumeDownButton.Visible = true
  431. VolumeDownButton_2.Visible = false
  432. VolumeUpButton_2.Visible = false
  433. else
  434. if Volume == 1 then
  435. VolumeFrame:TweenSize(UDim2.new(0, 105, 0, 5), "Out", "Linear", 0.5)
  436. VolumeUpButton.Visible = true
  437. VolumeDownButton.Visible = true
  438. VolumeDownButton_2.Visible = false
  439. VolumeUpButton_2.Visible = false
  440. else
  441. if Volume == 1.5 then
  442. VolumeFrame:TweenSize(UDim2.new(0, 155, 0, 5), "Out", "Linear", 0.5)
  443. VolumeUpButton.Visible = true
  444. VolumeDownButton.Visible = true
  445. VolumeDownButton_2.Visible = false
  446. VolumeUpButton_2.Visible = false
  447. else
  448. if Volume == 2 then
  449. VolumeFrame:TweenSize(UDim2.new(0, 205, 0, 5), "Out", "Linear", 0.5)
  450. VolumeUpButton.Visible = false
  451. VolumeDownButton.Visible = true
  452. VolumeUpButton_2.Visible = true
  453. VolumeDownButton_2.Visible = false
  454. end
  455. end
  456. end
  457. end
  458. end
  459. until
  460. SaveButton_2 == nil
  461. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement