Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Objects
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local TextLabel = Instance.new("TextLabel")
- local TextBox = Instance.new("TextBox")
- local TextBox_2 = Instance.new("TextBox")
- local TextLabel_2 = Instance.new("TextLabel")
- local TextLabel_3 = Instance.new("TextLabel")
- local TextButton = Instance.new("TextButton")
- local TextButton_2 = Instance.new("TextButton")
- -- Properties
- if game.PlaceId == "843495510,843468296" then
- ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui
- ScreenGui.ResetOnSpawn = false
- else
- ScreenGui.Parent = game.CoreGui
- end
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.new(0.454902, 0.454902, 0.454902)
- Frame.BorderColor3 = Color3.new(0, 0.666667, 1)
- Frame.Position = UDim2.new(0, 0, 0, 243)
- Frame.Size = UDim2.new(0, 408, 0, 312)
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.new(0.454902, 0.454902, 0.454902)
- TextLabel.BorderColor3 = Color3.new(0, 0.666667, 1)
- TextLabel.Size = UDim2.new(0, 408, 0, 50)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.FontSize = Enum.FontSize.Size14
- TextLabel.Text = "Music GUI By Migas3456"
- TextLabel.TextColor3 = Color3.new(0, 0.666667, 1)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14
- TextLabel.TextWrapped = true
- TextBox.Parent = Frame
- TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox.Position = UDim2.new(0, 104, 0, 71)
- TextBox.Size = UDim2.new(0, 200, 0, 27)
- TextBox.Font = Enum.Font.SourceSans
- TextBox.FontSize = Enum.FontSize.Size14
- TextBox.Text = "hi"
- TextBox.TextSize = 14
- TextBox_2.Parent = Frame
- TextBox_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextBox_2.Position = UDim2.new(0, 104, 0, 113)
- TextBox_2.Size = UDim2.new(0, 200, 0, 27)
- TextBox_2.Font = Enum.Font.SourceSans
- TextBox_2.FontSize = Enum.FontSize.Size14
- TextBox_2.Text = "bye"
- TextBox_2.TextSize = 14
- TextLabel_2.Parent = Frame
- TextLabel_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_2.BackgroundTransparency = 1
- TextLabel_2.Position = UDim2.new(0, 0, 0, 59)
- TextLabel_2.Size = UDim2.new(0, 92, 0, 50)
- TextLabel_2.Font = Enum.Font.SourceSans
- TextLabel_2.FontSize = Enum.FontSize.Size14
- TextLabel_2.Text = "Song ID:"
- TextLabel_2.TextColor3 = Color3.new(0, 0.666667, 1)
- TextLabel_2.TextScaled = true
- TextLabel_2.TextSize = 14
- TextLabel_2.TextWrapped = true
- TextLabel_3.Parent = Frame
- TextLabel_3.BackgroundColor3 = Color3.new(1, 1, 1)
- TextLabel_3.BackgroundTransparency = 1
- TextLabel_3.Position = UDim2.new(0, 0, 0, 95)
- TextLabel_3.Size = UDim2.new(0, 92, 0, 61)
- TextLabel_3.Font = Enum.Font.SourceSans
- TextLabel_3.FontSize = Enum.FontSize.Size14
- TextLabel_3.Text = "Volume:"
- TextLabel_3.TextColor3 = Color3.new(0, 0.666667, 1)
- TextLabel_3.TextScaled = true
- TextLabel_3.TextSize = 14
- TextLabel_3.TextWrapped = true
- TextButton.Parent = Frame
- TextButton.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton.Position = UDim2.new(0, 104, 0, 209)
- TextButton.Size = UDim2.new(0, 200, 0, 39)
- TextButton.Font = Enum.Font.SourceSans
- TextButton.FontSize = Enum.FontSize.Size14
- TextButton.Text = "PLAY"
- TextButton.TextSize = 14
- --[[Function/s being made!]]
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = workspace
- music.Volume = (TextBox_2.Text)
- music.Looped = true
- music:Play()
- end
- --[[Connecting functions!]]
- TextButton.MouseButton1Down:connect(function()
- PlayMusic(TextBox.Text)
- end)
- TextButton_2.Parent = Frame
- TextButton_2.BackgroundColor3 = Color3.new(1, 1, 1)
- TextButton_2.Position = UDim2.new(0, 104, 0, 256)
- TextButton_2.Size = UDim2.new(0, 200, 0, 39)
- TextButton_2.Font = Enum.Font.SourceSans
- TextButton_2.FontSize = Enum.FontSize.Size14
- TextButton_2.Text = "STOP"
- TextButton_2.TextSize = 14
- --[[Function/s being made!]]
- function PlayMusic(ID)
- for i, v in pairs (game.Workspace:GetChildren()) do
- if v:IsA("Sound") then
- v:Remove()
- end
- end
- local music = Instance.new("Sound")
- local asset = "rbxassetid://"
- music.SoundId = asset .. ID
- music.Parent = workspace
- music.Volume = (TextBox_2.Text)
- music.Looped = true
- music:Play()
- end
- --[[Connecting functions!]]
- TextButton_2.MouseButton1Down:connect(function()
- PlayMusic(0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement