Advertisement
SlappyDappyCrappy

kay

Jan 13th, 2017
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plr = game.Players.LocalPlayer
  2. local moosicPlayer = Instance.new("Sound",game.Workspace)
  3. moosicPlayer.Volume = 1
  4. local screengui = Instance.new("ScreenGui",plr.PlayerGui)
  5. local main = Instance.new("Frame",screengui)
  6. main.Style = Enum.FrameStyle.RobloxRound
  7. main.Size = UDim2.new(0,300,0,200)
  8. main.Position = UDim2.new(0.5,0,0.5,0)
  9. main.BackgroundTransparency = 1
  10. main.Draggable = true
  11. main.Active = true
  12. local textbox = Instance.new("TextBox",main)
  13. textbox.Size = UDim2.new(0,200,0,50)
  14. textbox.Position = UDim2.new(0.075,0,0.3,0)
  15. textbox.ClearTextOnFocus = false
  16. local textButton = Instance.new("TextButton",textbox)
  17. textButton.Position = UDim2.new(1,0,0,0)
  18. textButton.Size = UDim2.new(0,50,0,50)
  19. textButton.Text = ">"
  20. textButton.BackgroundColor3 = Color3.new(0,1,0)
  21. local txt = Instance.new("TextLabel",main)
  22. txt.Text = ("Music! input a id and click the green button!")
  23. txt.Size = UDim2.new(1,0,0.2,0)
  24. txt.TextWrapped = true
  25. txt.TextScaled = true
  26. textButton.MouseButton1Down:connect(function(asd)
  27. moosicPlayer.Looped = true
  28. local id = textbox.Text
  29. moosicPlayer.SoundId = ("rbxassetid://"..id)
  30. wait(0.1)
  31. moosicPlayer:Play()
  32. wait(120)
  33. moosicPlayer.SoundId = nil
  34. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement