Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16, @PurpleCrystella || PART MUSIC PLAYER COMMAND (GAMEPASS)
- ]]
- local MPS = game:GetService("MarketplaceService")
- local Sound = script.Parent.Sound
- local id = 0
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- if MPS:UserOwnsGamePassAsync(player.UserId, id) then
- 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)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement