Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || GAMEPASS COMMAND
- ]]
- local Command = {} -- Commands go here
- local MPS = game:GetService("MarketplaceService")
- local id = 0 -- Your Gamepass Id Goes Here
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- for _, GamepassChatCommand in pairs(Command) do
- if msg:sub(1, GamepassChatCommand:len()):lower() == GamepassChatCommand:lower() then
- if MPS:UserOwnsGamePassAsync(player.UserId, id) then
- wait(0.9)
- print(player.Name.. " used the command")
- else
- wait(0.9)
- MPS:PromptGamePassPurchase(player, id)
- end
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement