Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("CoreGui"):FindFirstChild("UIGui") then
- game:GetService("CoreGui"):FindFirstChild("UIGui"):Destroy()
- end
- local UIGui = Instance.new("ScreenGui")
- local SondFrameBackground = Instance.new("Frame")
- local SondFrame = Instance.new("ImageLabel")
- local MainSondFrame = Instance.new("Frame")
- local SoundTextBox = Instance.new("TextBox")
- local SondFrameBackgroundUICorner = Instance.new("UICorner")
- local SondFrameUICorner = Instance.new("UICorner")
- local MainSondFrameUICorner = Instance.new("UICorner")
- local SoundTextBoxUICorner = Instance.new("UICorner")
- local CoreSound = Instance.new("Sound")
- local Stop_PlayButton = Instance.new("ImageButton")
- local AudioName = Instance.new("TextLabel")
- local Stop_PlayButtonBackground = Instance.new("Frame")
- local Stop_PlayButtonBackgroundUICorner = Instance.new("UICorner")
- local Stop_PlayButtonBackground_2 = Instance.new("Frame")
- local Stop_PlayButtonBackgroundUICorner_2 = Instance.new("UICorner")
- local Volume = 1
- local SaveButtonBackground_2 = Instance.new("Frame")
- local SaveButtonBackgroundUICorner_2 = Instance.new("UICorner")
- local SaveButton_2 = Instance.new("ImageButton")
- local SaveButtonUICorner_2 = Instance.new("UICorner")
- local PlaylistButtonBackground = Instance.new("Frame")
- local PlaylistButtonBackgroundUICorner = Instance.new("UICorner")
- local PlaylistButtonBackground_2 = Instance.new("Frame")
- local PlaylistButtonBackgroundUICorner_2 = Instance.new("UICorner")
- local PlaylistButton = Instance.new("ImageButton")
- local VolumeFrame = Instance.new("Frame")
- local VolumeFrameUICorner = Instance.new("UICorner")
- local VolumeUpButtonBackground = Instance.new("Frame")
- local VolumeUpButtonBackgroundUICorner = Instance.new("UICorner")
- local VolumeUpButton = Instance.new("ImageButton")
- local VolumeUpButtonUICorner = Instance.new("UICorner")
- local VolumeDownButtonBackground = Instance.new("Frame")
- local VolumeDownButtonBackgroundUICorner = Instance.new("UICorner")
- local VolumeDownButton = Instance.new("ImageButton")
- local VolumeDownButtonUICorner = Instance.new("UICorner")
- local VolumeUpButton_2 = Instance.new("ImageButton")
- local VolumeUpButtonUICorner_2 = Instance.new("UICorner")
- local VolumeDownButton_2 = Instance.new("ImageButton")
- local VolumeDownButtonUICorner_2 = Instance.new("UICorner")
- UIGui.Name = "UIGui"
- UIGui.Parent = game.CoreGui
- game.CoreGui.UIGui.Enabled = true
- CoreSound.Parent = game:GetService("SoundService")
- CoreSound.Playing = true
- CoreSound.Looped = true
- CoreSound.Volume = Volume
- CoreSound:Stop()
- SondFrameBackground.Name = "SondFrameBackground"
- SondFrameBackground.Parent = UIGui
- SondFrameBackground.AnchorPoint = Vector2.new(0.5, 0.5)
- SondFrameBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- SondFrameBackground.Position = UDim2.new(0.5, 0, 0.5, 0)
- SondFrameBackground.Size = UDim2.new(0, 350, 0, 400)
- SondFrameBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- SondFrameBackgroundUICorner.Parent = SondFrameBackground
- SondFrame.Name = "SondFrame"
- SondFrame.Parent = SondFrameBackground
- SondFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- SondFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SondFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- SondFrame.Size = UDim2.new(0, 345, 0, 395)
- SondFrame.Image = "rbxassetid://16139850662"
- SondFrameUICorner.CornerRadius = UDim.new(0, 15)
- SondFrameUICorner.Parent = SondFrame
- MainSondFrame.Name = "MainSondFrame"
- MainSondFrame.Parent = SondFrame
- MainSondFrame.BackgroundTransparency = 0.4
- MainSondFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainSondFrame.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- MainSondFrame.Position = UDim2.new(0.5, 0, 0.5, 0)
- MainSondFrame.Size = UDim2.new(0, 345, 0, 395)
- MainSondFrameUICorner.CornerRadius = UDim.new(0, 15)
- MainSondFrameUICorner.Parent = MainSondFrame
- SoundTextBox.Name = "SoundTextBox"
- SoundTextBox.Parent = MainSondFrame
- SoundTextBox.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- SoundTextBox.BackgroundTransparency = 0.4
- SoundTextBox.Position = UDim2.new(0.0055, 0, 0.01, 0)
- SoundTextBox.Size = UDim2.new(0, 340, 0, 25)
- SoundTextBox.ClearTextOnFocus = false
- SoundTextBox.Font = Enum.Font.SourceSansBold
- SoundTextBox.PlaceholderText = "Sound Id here"
- SoundTextBox.Text = ""
- SoundTextBox.TextColor3 = Color3.fromRGB(255, 255, 255)
- SoundTextBox.TextTransparency = 0
- SoundTextBox.TextScaled = true
- SoundTextBox.TextSize = 14.000
- SoundTextBox.TextWrapped = true
- SoundTextBoxUICorner.CornerRadius = UDim.new(0, 15)
- SoundTextBoxUICorner.Parent = SoundTextBox
- Stop_PlayButtonBackground.Name = "Stop_PlayButtonBackground"
- Stop_PlayButtonBackground.Parent = MainSondFrame
- Stop_PlayButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
- Stop_PlayButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- Stop_PlayButtonBackground.Position = UDim2.new(0.5, 0, 0.5, 0)
- Stop_PlayButtonBackground.Size = UDim2.new(0, 105, 0, 105)
- Stop_PlayButtonBackgroundUICorner.CornerRadius = UDim.new(1, 0)
- Stop_PlayButtonBackgroundUICorner.Parent = Stop_PlayButtonBackground
- Stop_PlayButtonBackground_2.Name = "Stop_PlayButtonBackground_2"
- Stop_PlayButtonBackground_2.Parent = Stop_PlayButtonBackground
- Stop_PlayButtonBackground_2.AnchorPoint = Vector2.new(0.5, 0.5)
- Stop_PlayButtonBackground_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Stop_PlayButtonBackground_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- Stop_PlayButtonBackground_2.Size = UDim2.new(0, 100, 0, 100)
- Stop_PlayButtonBackgroundUICorner_2.CornerRadius = UDim.new(1, 0)
- Stop_PlayButtonBackgroundUICorner_2.Parent = Stop_PlayButtonBackground_2
- Stop_PlayButton.Name = "Stop_PlayButton"
- Stop_PlayButton.Parent = Stop_PlayButtonBackground_2
- Stop_PlayButton.AnchorPoint = Vector2.new(0.5, 0.5)
- Stop_PlayButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
- Stop_PlayButton.Size = UDim2.new(0, 80, 0, 80)
- Stop_PlayButton.BackgroundTransparency = 1
- Stop_PlayButton.Image = "rbxassetid://16139639068"
- AudioName.Name = "AudioName"
- AudioName.Parent = MainSondFrame
- AudioName.BackgroundTransparency = 1
- AudioName.Position = UDim2.new(0.0055, 0, 0.1, 0)
- AudioName.Size = UDim2.new(0, 340, 0, 25)
- AudioName.Font = Enum.Font.SourceSansBold
- AudioName.Text = ""
- AudioName.TextColor3 = Color3.fromRGB(192, 192, 192)
- AudioName.TextScaled = true
- AudioName.TextSize = 14.000
- AudioName.TextWrapped = true
- AudioName.TextXAlignment = Enum.TextXAlignment.Left
- SaveButtonBackground_2.Name = "SaveButtonBackground_2"
- SaveButtonBackground_2.Parent = MainSondFrame
- SaveButtonBackground_2.AnchorPoint = Vector2.new(0.5, 0.5)
- SaveButtonBackground_2.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- SaveButtonBackground_2.Position = UDim2.new(0.2, 0, 0.5, 0)
- SaveButtonBackground_2.Size = UDim2.new(0, 55, 0, 55)
- SaveButtonBackgroundUICorner_2.CornerRadius = UDim.new(1, 0)
- SaveButtonBackgroundUICorner_2.Parent = SaveButtonBackground_2
- SaveButton_2.Name = "SaveButton_2"
- SaveButton_2.Parent = SaveButtonBackground_2
- SaveButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
- SaveButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- SaveButton_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- SaveButton_2.Size = UDim2.new(0, 50, 0, 50)
- SaveButton_2.Image = "rbxassetid://16139574980"
- SaveButton_2.AutoButtonColor = false
- SaveButtonUICorner_2.CornerRadius = UDim.new(1, 0)
- SaveButtonUICorner_2.Parent = SaveButton_2
- PlaylistButtonBackground.Name = "PlaylistButtonBackground"
- PlaylistButtonBackground.Parent = MainSondFrame
- PlaylistButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
- PlaylistButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- PlaylistButtonBackground.Position = UDim2.new(0.8, 0, 0.5, 0)
- PlaylistButtonBackground.Size = UDim2.new(0, 55, 0, 55)
- PlaylistButtonBackgroundUICorner.CornerRadius = UDim.new(1, 0)
- PlaylistButtonBackgroundUICorner.Parent = PlaylistButtonBackground
- PlaylistButtonBackground_2.Name = "PlaylistButtonBackground_2"
- PlaylistButtonBackground_2.Parent = PlaylistButtonBackground
- PlaylistButtonBackground_2.AnchorPoint = Vector2.new(0.5, 0.5)
- PlaylistButtonBackground_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- PlaylistButtonBackground_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- PlaylistButtonBackground_2.Size = UDim2.new(0, 50, 0, 50)
- PlaylistButtonBackgroundUICorner_2.CornerRadius = UDim.new(1, 0)
- PlaylistButtonBackgroundUICorner_2.Parent = PlaylistButtonBackground_2
- PlaylistButton.Name = "PlaylistButton"
- PlaylistButton.Parent = PlaylistButtonBackground_2
- PlaylistButton.AnchorPoint = Vector2.new(0.5, 0.5)
- PlaylistButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- PlaylistButton.Position = UDim2.new(0.55, 0, 0.55, 0)
- PlaylistButton.Size = UDim2.new(0, 40, 0, 40)
- PlaylistButton.Image = "rbxassetid://16139588106"
- PlaylistButton.BackgroundTransparency = 1
- VolumeDownButtonBackground.Name = "VolumeDownButtonBackground"
- VolumeDownButtonBackground.Parent = MainSondFrame
- VolumeDownButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
- VolumeDownButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- VolumeDownButtonBackground.Position = UDim2.new(0.1, 0, 0.9, 0)
- VolumeDownButtonBackground.Size = UDim2.new(0, 50, 0, 35)
- VolumeDownButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- VolumeDownButtonBackgroundUICorner.Parent = VolumeDownButtonBackground
- VolumeUpButtonBackground.Name = "VolumeUpButtonBackground"
- VolumeUpButtonBackground.Parent = MainSondFrame
- VolumeUpButtonBackground.AnchorPoint = Vector2.new(0.5, 0.5)
- VolumeUpButtonBackground.BackgroundColor3 = Color3.fromRGB(55, 55, 55)
- VolumeUpButtonBackground.Position = UDim2.new(0.9, 0, 0.9, 0)
- VolumeUpButtonBackground.Size = UDim2.new(0, 50, 0, 35)
- VolumeUpButtonBackgroundUICorner.CornerRadius = UDim.new(0, 15)
- VolumeUpButtonBackgroundUICorner.Parent = VolumeUpButtonBackground
- VolumeUpButton.Name = "VolumeUpButton"
- VolumeUpButton.Parent = VolumeUpButtonBackground
- VolumeUpButton.AnchorPoint = Vector2.new(0.5, 0.5)
- VolumeUpButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- VolumeUpButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- VolumeUpButton.Size = UDim2.new(0, 46, 0, 32)
- VolumeUpButton.Image = "rbxassetid://16164520143"
- VolumeUpButton.AutoButtonColor = false
- VolumeUpButtonUICorner.CornerRadius = UDim.new(0, 12)
- VolumeUpButtonUICorner.Parent = VolumeUpButton
- VolumeDownButton.Name = "VolumeDownButton"
- VolumeDownButton.Parent = VolumeDownButtonBackground
- VolumeDownButton.AnchorPoint = Vector2.new(0.5, 0.5)
- VolumeDownButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- VolumeDownButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- VolumeDownButton.Size = UDim2.new(0, 46, 0, 32)
- VolumeDownButton.Image = "rbxassetid://16164522333"
- VolumeDownButton.AutoButtonColor = false
- VolumeDownButtonUICorner.CornerRadius = UDim.new(0, 12)
- VolumeDownButtonUICorner.Parent = VolumeDownButton
- VolumeDownButton_2.Name = "VolumeDownButton_2"
- VolumeDownButton_2.Parent = VolumeDownButtonBackground
- VolumeDownButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
- VolumeDownButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- VolumeDownButton_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- VolumeDownButton_2.Size = UDim2.new(0, 46, 0, 32)
- VolumeDownButton_2.Image = "rbxassetid://16164522333"
- VolumeDownButton_2.AutoButtonColor = false
- VolumeDownButtonUICorner_2.CornerRadius = UDim.new(0, 12)
- VolumeDownButtonUICorner_2.Parent = VolumeDownButton_2
- VolumeUpButton_2.Name = "VolumeUpButton_2"
- VolumeUpButton_2.Parent = VolumeUpButtonBackground
- VolumeUpButton_2.AnchorPoint = Vector2.new(0.5, 0.5)
- VolumeUpButton_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
- VolumeUpButton_2.Position = UDim2.new(0.5, 0, 0.5, 0)
- VolumeUpButton_2.Size = UDim2.new(0, 46, 0, 32)
- VolumeUpButton_2.Image = "rbxassetid://16164520143"
- VolumeUpButton_2.AutoButtonColor = false
- VolumeUpButtonUICorner_2.CornerRadius = UDim.new(0, 12)
- VolumeUpButtonUICorner_2.Parent = VolumeUpButton_2
- VolumeDownButton_2.Visible = false
- VolumeUpButton_2.Visible = false
- VolumeFrame.Name = "VolumeFrame"
- VolumeFrame.Parent = MainSondFrame
- VolumeFrame.Position = UDim2.new(0.2, 0, 0.895, 0)
- VolumeFrame.Size = UDim2.new(0, 10, 0, 5)
- VolumeFrame.BackgroundColor3 = Color3.new(255, 255, 255)
- VolumeFrameUICorner.CornerRadius = UDim.new(1, 0)
- VolumeFrameUICorner.Parent = VolumeFrame
- function createfolders(path)
- local pathtbl = string.split(path, "/")
- for i, v in pairs(pathtbl) do
- if i == 1 then
- if not isfolder(v) then
- makefolder(v)
- end
- else
- local newpath = pathtbl[1]
- for i2=2, i-1 do
- newpath = newpath.. "/" ..pathtbl[i2]
- end
- newpath = newpath.. "/" ..v
- if not isfolder(newpath) then
- makefolder(newpath)
- end
- end
- end
- end
- if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3EDITOR.ECCS") and isfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS") and isfolder("ECCS_V3") then
- delfolder("ECCS_V3")
- end
- createfolders("ECCS_V3/CoreSystem/Files")
- if not isfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS") then
- writefile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS", " ")
- end
- VolumeUpButton.MouseButton1Click:Connect(function()
- Volume = Volume + 0.5
- end)
- VolumeDownButton.MouseButton1Click:Connect(function()
- Volume = Volume - 0.5
- end)
- SaveButton_2.MouseButton1Click:Connect(function()
- if Stop_PlayButton.Image == "rbxassetid://16139639068" and SoundTextBox.Text == "" then
- SoundTextBox.PlaceholderText = "Enter Id here"
- wait(1)
- SoundTextBox.PlaceholderText = "Sound Id here"
- else
- SoundTextBox.PlaceholderText = "Sound Id here"
- if SaveButton_2.Image == "rbxassetid://16139574980" then
- SaveButton_2.Image = "rbxassetid://16139703752"
- writefile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS", ""..SoundTextBox.Text)
- else
- if SaveButton_2.Image == "rbxassetid://16139703752" then
- SaveButton_2.Image = "rbxassetid://16139574980"
- writefile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS", " ")
- end
- end
- end
- end)
- PlaylistButton.MouseButton1Click:Connect(function()
- local ReadECCSV3_2 = readfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS")
- SoundTextBox.Text = ReadECCSV3_2
- if SoundTextBox.Text == " " then
- SoundTextBox.Text = ""
- end
- end)
- Stop_PlayButton.MouseButton1Click:Connect(function()
- if Stop_PlayButton.Image == "rbxassetid://16139639068" and SoundTextBox.Text == "" then
- SoundTextBox.PlaceholderText = "Enter Id here"
- wait(1)
- SoundTextBox.PlaceholderText = "Sound Id here"
- else
- SoundTextBox.PlaceholderText = "Sound Id here"
- if Stop_PlayButton.Image == "rbxassetid://16139639068" then
- Stop_PlayButton.Image = "rbxassetid://16139637058"
- Stop_PlayButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- Audio = game:GetService("MarketplaceService"):GetProductInfo(SoundTextBox.Text)
- AudioName.Text = Audio.Name
- CoreSound.SoundId = "rbxassetid://"..SoundTextBox.Text
- CoreSound:Play()
- else
- if Stop_PlayButton.Image == "rbxassetid://16139637058" then
- Stop_PlayButton.Image = "rbxassetid://16139639068"
- Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
- CoreSound:Stop()
- end
- end
- end
- end)
- SoundTextBox.FocusLost:Connect(function(enterPressed)
- if enterPressed then
- if Stop_PlayButton.Image == "rbxassetid://16139639068" and SoundTextBox.Text == "" then
- SoundTextBox.PlaceholderText = "Enter Id here"
- wait(1)
- SoundTextBox.PlaceholderText = "Sound Id here"
- else
- SoundTextBox.PlaceholderText = "Sound Id here"
- if Stop_PlayButton.Image == "rbxassetid://16139639068" then
- Stop_PlayButton.Image = "rbxassetid://16139637058"
- Stop_PlayButton.Position = UDim2.new(0.5, 0, 0.5, 0)
- Audio = game:GetService("MarketplaceService"):GetProductInfo(SoundTextBox.Text)
- AudioName.Text = Audio.Name
- CoreSound.SoundId = "rbxassetid://"..SoundTextBox.Text
- CoreSound:Play()
- else
- if Stop_PlayButton.Image == "rbxassetid://16139637058" then
- Stop_PlayButton.Image = "rbxassetid://16139639068"
- Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
- CoreSound:Stop()
- end
- end
- end
- end
- end)
- spawn(function()
- repeat
- wait()
- local ReadECCSV3_2 = readfile("ECCS_V3/CoreSystem/Files/ECCSV3Player.ECCS")
- if SoundTextBox.Text == ReadECCSV3_2 then
- SaveButton_2.Image = "rbxassetid://16139703752"
- else
- if SoundTextBox.Text ~= ReadECCSV3_2 then
- SaveButton_2.Image = "rbxassetid://16139574980"
- end
- if SoundTextBox.Text == "" then
- SaveButton_2.Image = "rbxassetid://16139574980"
- Stop_PlayButton.Image = "rbxassetid://16139639068"
- Stop_PlayButton.Position = UDim2.new(0.6, 0, 0.5, 0)
- CoreSound:Stop()
- AudioName.Text = ""
- end
- end
- until
- SaveButton_2 == nil
- end)
- spawn(function()
- repeat
- wait()
- CoreSound.Volume = Volume
- if Volume == 0 then
- VolumeFrame:TweenSize(UDim2.new(0, 1, 0, 5), "Out", "Linear", 0.5)
- VolumeUpButton.Visible = true
- VolumeDownButton.Visible = false
- VolumeDownButton_2.Visible = true
- VolumeUpButton_2.Visible = false
- else
- if Volume == 0.5 then
- VolumeFrame:TweenSize(UDim2.new(0, 55, 0, 5), "Out", "Linear", 0.5)
- VolumeUpButton.Visible = true
- VolumeDownButton.Visible = true
- VolumeDownButton_2.Visible = false
- VolumeUpButton_2.Visible = false
- else
- if Volume == 1 then
- VolumeFrame:TweenSize(UDim2.new(0, 105, 0, 5), "Out", "Linear", 0.5)
- VolumeUpButton.Visible = true
- VolumeDownButton.Visible = true
- VolumeDownButton_2.Visible = false
- VolumeUpButton_2.Visible = false
- else
- if Volume == 1.5 then
- VolumeFrame:TweenSize(UDim2.new(0, 155, 0, 5), "Out", "Linear", 0.5)
- VolumeUpButton.Visible = true
- VolumeDownButton.Visible = true
- VolumeDownButton_2.Visible = false
- VolumeUpButton_2.Visible = false
- else
- if Volume == 2 then
- VolumeFrame:TweenSize(UDim2.new(0, 205, 0, 5), "Out", "Linear", 0.5)
- VolumeUpButton.Visible = false
- VolumeDownButton.Visible = true
- VolumeUpButton_2.Visible = true
- VolumeDownButton_2.Visible = false
- end
- end
- end
- end
- end
- until
- SaveButton_2 == nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement