Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || DONATE PROMPT COMMAND || ONLY CHANGE ID.
- ]]
- local DonateCommand = {":donate", "@donate", "/donate", ";donate", "!donate", "_donate"}
- local MPS = game:GetService("MarketplaceService")
- local id = 0
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- for i, PromptCommand in pairs(DonateCommand) do
- if msg:sub(1, PromptCommand:len()):lower() == PromptCommand:lower() then
- wait(0.9)
- MPS:PromptProductPurchase(player, id)
- end
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement