Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = game.Players.LocalPlayer
- local moosicPlayer = Instance.new("Sound",game.Workspace)
- moosicPlayer.Volume = 1
- local screengui = Instance.new("ScreenGui",plr.PlayerGui)
- local main = Instance.new("Frame",screengui)
- main.Style = Enum.FrameStyle.RobloxRound
- main.Size = UDim2.new(0,300,0,200)
- main.Position = UDim2.new(0.5,0,0.5,0)
- main.BackgroundTransparency = 1
- main.Draggable = true
- main.Active = true
- local textbox = Instance.new("TextBox",main)
- textbox.Size = UDim2.new(0,200,0,50)
- textbox.Position = UDim2.new(0.075,0,0.3,0)
- textbox.ClearTextOnFocus = false
- local textButton = Instance.new("TextButton",textbox)
- textButton.Position = UDim2.new(1,0,0,0)
- textButton.Size = UDim2.new(0,50,0,50)
- textButton.Text = ">"
- textButton.BackgroundColor3 = Color3.new(0,1,0)
- local txt = Instance.new("TextLabel",main)
- txt.Text = ("Music! input a id and click the green button!")
- txt.Size = UDim2.new(1,0,0.2,0)
- txt.TextWrapped = true
- txt.TextScaled = true
- textButton.MouseButton1Down:connect(function(asd)
- moosicPlayer.Looped = true
- local id = textbox.Text
- moosicPlayer.SoundId = ("rbxassetid://"..id)
- wait(0.1)
- moosicPlayer:Play()
- wait(120)
- moosicPlayer.SoundId = nil
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement