Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16, @PurpleCrystella || PART MUSIC PLAYER COMMAND
- ]]
- local Sound = script.Parent.Sound
- game.Players.PlayerAdded:Connect(function(newPlayer)
- newPlayer.Chatted:Connect(function(msg)
- if string.sub(msg,1,5) == "!play" then
- Sound.SoundId = "rbxassetid://"..string.sub(msg,6)
- Sound.Volume = 10
- wait(1)
- Sound:Play()
- wait(Sound.TimeLength)
- Sound:Stop()
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement