Advertisement
Gomlsauresrex

Test

Jan 14th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. --[[
  2. Name : Music Player
  3. Creator : chexyalani
  4.  
  5. Social Media:
  6. Twitter : @chexyalani
  7. Discord user : chexyalani#2012
  8. --]]
  9.  
  10. function message(t)
  11. game:FindService("StarterGui"):SetCore('ChatMakeSystemMessage',{
  12. Text=t;
  13. Color=Color3.new(255/255,255/255,0/255);
  14. Font=Enum.Font.SourceSans;
  15. })
  16. end
  17.  
  18. local Players = game:FindService("Players")
  19. local player = Players.LocalPlayer
  20. local http = game:GetService("HttpService")
  21. local sound = Instance.new("Sound",game.ReplicatedStorage)
  22. sound.Name='Sound'
  23. sound.Volume=1
  24. sound.Looped=true
  25.  
  26. message('[Music Player] Music Player has started. Developed by chexyalani (a.k.a comane1733)')
  27.  
  28. player.Chatted:Connect(function(m)
  29. m=m:lower()
  30. if m:sub(1,7)==';;play ' then
  31. local songname=m:sub(8)
  32. sound.SoundId='rbxassetid://'..songname
  33. message('[Music Player] Now playing : '..game:GetService("MarketplaceService"):GetProductInfo(tonumber(songname)).Name)
  34. sound:Play()
  35. end
  36. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement