Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Music Playing Script by basstracker1970
- Name = "basstracker1970"
- wait(1)
- plr = game.Players:FindFirstChild(Name)
- mouse = plr:GetMouse()
- rbx = "rbxassetid://"
- plr.Chatted:connect(function(msg)
- if string.sub((msg),1,6) == "play/ " then
- game:GetService('RunService').RenderStepped:wait(0)
- local text = string.sub(msg,7)
- local sound = Instance.new("Sound")
- sound.SoundId = rbx..text
- sound.Parent = plr.Character
- sound:Play()
- end
- end)
- plr.Chatted:connect(function(msg)
- if msg == "stop/" then
- game:GetService('RunService').RenderStepped:wait(0)
- if plr.Character:FindFirstChildOfClass("Sound") then
- plr.Character.Sound:Remove()
- end
- end
- end)
- plr.Chatted:connect(function(msg)
- if msg == "loop/" then
- game:GetService('RunService').RenderStepped:wait(0)
- if plr.Character:FindFirstChildOfClass("Sound") then
- plr.Character:FindFirstChildOfClass("Sound").Looped = true
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement