Advertisement
plytalent

Muiscgui(NON-FE)

Feb 22nd, 2019
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.65 KB | None | 0 0
  1. --XxBillyTheNoscoperxX
  2. --distortion lololololololol
  3. local plr = game.Players.LocalPlayer
  4. plrgui = plr.PlayerGui
  5. local base = Instance.new("ScreenGui",plrgui)
  6. local bground = Instance.new("Frame",base)
  7. base.Name = "lol"
  8. bground.Name = "bground"
  9. bground.Position = UDim2.new(0.505, 0, 0.812, 0)
  10. bground.Size = UDim2.new(0.495, 0, 0.187, 0)
  11. bground.BackgroundColor3 = Color3.fromRGB(0,0,0)
  12. bground.BorderColor3 = Color3.fromRGB(163,162,165)
  13. bground.BorderSizePixel = 6
  14. local tbox = Instance.new("TextBox",bground)
  15. tbox.Name = "tbox"
  16. tbox.Text = "Sound ID"
  17. tbox.Position = UDim2.new(0.013, 0, 0.043, 0)
  18. tbox.Size = UDim2.new(0, 200, 0, 50)
  19. tbox.TextWrapped = true
  20. tbox.TextScaled = true
  21. tbox.BackgroundColor3 = Color3.fromRGB(255,255,255)
  22. tbox.BorderColor3 = Color3.fromRGB(25,25,25)
  23. tbox.BorderSizePixel = 5
  24. local volume = Instance.new("TextBox",bground)
  25. volume.Name = "volume"
  26. volume.Text = "vol 1-10"
  27. volume.Position = UDim2.new(0.006, 0, 0.493, 0)
  28. volume.Size = UDim2.new(0, 200, 0, 50)
  29. volume.TextWrapped = true
  30. volume.TextScaled = true
  31. volume.BackgroundColor3 = Color3.fromRGB(255,255,255)
  32. volume.BorderColor3 = Color3.fromRGB(25,25,25)
  33. volume.BorderSizePixel = 5
  34. local submit = Instance.new("TextButton",bground)
  35. submit.Name = "submit"
  36. submit.Text = "Submit"
  37. submit.Position = UDim2.new(0.68, 0, 0.600, 0)
  38. submit.Size = UDim2.new(0, 200, 0, 50)
  39. submit.TextScaled = true
  40. submit.TextWrapped = true
  41. submit.BackgroundColor3 = Color3.fromRGB(200,200,200)
  42. --local pause = Instance.new("TextButton",bground)
  43. --pause.Name = "pause"
  44. --pause.Text = "Pause"
  45. --pause.Position = UDim2.new(0.670, 0, 0.403, 0)
  46. --pause.Size = UDim2.new(0, 200, 0, 50)
  47. --pause.TextScaled = true
  48. --pause.TextWrapped = true
  49. --pause.BackgroundColor3 = Color3.fromRGB(200,200,200)
  50. local stop = Instance.new("TextButton",bground)
  51. stop.Name = "stop"
  52. stop.Text = "Stop"
  53. stop.Position = UDim2.new(0.672, 0, 0.099, 0)
  54. stop.Size = UDim2.new(0, 200, 0, 50)
  55. stop.TextScaled = true
  56. stop.TextWrapped = true
  57. stop.BackgroundColor3 = Color3.fromRGB(200,200,200)
  58. --time for the goodies amirite
  59. --while wait(1/60)do
  60. -- if workspace:FindFirstChild("Musicui") == nil then
  61. -- newsound = Instance.new("Sound",workspace)
  62. -- newsound.Name = "MusicGui"
  63. -- newsound.SoundId = "rbxassetid://"..tbox.Text
  64. -- else
  65. -- end
  66. --end
  67. local pause = false
  68. local newsound = Instance.new("Sound",workspace)
  69. newsound.Name = "MusicGui"
  70. submit.MouseButton1Down:connect(function()
  71. newsound.SoundId = "rbxassetid://"..tbox.Text
  72. newsound.Volume = volume.Text
  73. newsound.Looped = true
  74. newsound:Play()
  75. pause = false
  76. end)
  77. stop.MouseButton1Down:Connect(function()
  78. if pause == false then
  79. newsound:Pause()
  80. end
  81. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement