Advertisement
DerpzDeNugget

Derpz's Radio

Aug 25th, 2018
200
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. print("Derpz's Simple Music Player by DerpzDeNugget_YT")
  2. warn("Derpz's SMP V1")
  3.  
  4. local plr = game:service'Players'.localPlayer
  5.  
  6. function newThemeCust(ID,timepos,pitch,vol)
  7. local kanz = kan
  8. kanz:Stop()
  9. kanz.Volume = vol
  10. kanz.TimePosition = timepos
  11. kanz.PlaybackSpeed = pitch
  12. kanz.Pitch = pitch
  13. kanz.SoundId = ID
  14. kanz.Name = "Derpz's Music"
  15. kanz.Looped = true
  16. currentThemePlaying = kanz.SoundId
  17. currentVol = kanz.Volume
  18. currentPitch = kanz.Pitch
  19. kanz:Play()
  20. coroutine.resume(coroutine.create(function()
  21. wait(0.05)
  22. end))
  23. end
  24.  
  25. local kan = Instance.new("Sound",char)
  26. kan.Volume = 1.25
  27. kan.TimePosition = 0
  28. kan.PlaybackSpeed = 1
  29. kan.Pitch = 1.01
  30. kan.SoundId = "rbxassetid://463063479"
  31. kan.Name = "Derpz's Music"
  32. kan.Looped = true
  33. kan:Play()
  34.  
  35.  
  36. local OVMID = 497810777
  37. local OVMPIT = 1
  38. local OVMVOL = 1
  39.  
  40. plr.Chatted:connect(function(message)
  41. if message:sub(1,5) == "play/" then
  42. OVMID = message:sub(6)
  43. newThemeCust("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  44. elseif message:sub(1,6) == "pitch/" then
  45. OVMPIT = message:sub(7)
  46. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  47. elseif message:sub(1,4) == "vol/" then
  48. OVMVOL = message:sub(5)
  49. newTheme("rbxassetid://"..OVMID,0,OVMPIT,OVMVOL)
  50. end
  51. end
  52. end)
  53. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement