Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Name : Music Player
- Creator : chexyalani
- Social Media:
- Twitter : @chexyalani
- Discord user : chexyalani#2012
- --]]
- function message(t)
- game:FindService("StarterGui"):SetCore('ChatMakeSystemMessage',{
- Text=t;
- Color=Color3.new(255/255,255/255,0/255);
- Font=Enum.Font.SourceSans;
- })
- end
- local Players = game:FindService("Players")
- local player = Players.LocalPlayer
- local http = game:GetService("HttpService")
- local sound = Instance.new("Sound",game.ReplicatedStorage)
- sound.Name='Sound'
- sound.Volume=1
- sound.Looped=true
- message('[Music Player] Music Player has started. Developed by chexyalani (a.k.a comane1733)')
- player.Chatted:Connect(function(m)
- m=m:lower()
- if m:sub(1,7)==';;play ' then
- local songname=m:sub(8)
- sound.SoundId='rbxassetid://'..songname
- message('[Music Player] Now playing : '..game:GetService("MarketplaceService"):GetProductInfo(tonumber(songname)).Name)
- sound:Play()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement