AOM-GU-PRO

TEST

Jun 26th, 2020 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end
  2. getfenv().parent=nil
  3. local Event = Instance.new("RemoteEvent",owner.Character)
  4. Event.Name = "PlaybackLoudness"
  5. Event.OnServerEvent:Connect(function(owner,value)
  6.  
  7. end)
  8. local Music = Instance.new("Sound",owner.Character["Torso"])
  9. Music.Looped = true
  10. Music.SoundId = "rbxassetid://514378358"
  11. Music.Pitch = 1
  12. Music.Volume = 1
  13. Music:Play()
  14. owner.Chatted:connect(function(message)
  15. if(message:sub(1,3)=="/e ")then
  16. message=message:sub(4)
  17. end
  18. if message:sub(1,5):lower() == "play/" then
  19. local id=tonumber(message:match'%d+')
  20. if not id then return end
  21. Music.SoundId = "rbxassetid://"..id;Music.TimePosition = 0
  22. elseif message:sub(1,6):lower() == "pitch/" then
  23. local pitch=(message:sub(7))
  24. if not pitch then return end
  25. Music.Pitch = pitch
  26. elseif message:sub(1,4):lower() == "vol/" then
  27. local vol=(message:sub(5))
  28. if not vol then return end
  29. Music.Volume = vol
  30. elseif message:sub(1,5):lower() == "tpos/" then
  31. local tp=tonumber(message:match'%d+')
  32. if not tp then return end
  33. Music.TimePosition = tp
  34. end
  35. end)
  36. while true do wait()
  37. if not Music.Parent then
  38. Music = Instance.new("Sound",owner.Character["Torso"])
  39. end
  40. end
Add Comment
Please, Sign In to add comment