Advertisement
4zx16

Donate Prompt Command

Nov 12th, 2021 (edited)
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || DONATE PROMPT COMMAND || ONLY CHANGE ID.
  3. ]]
  4. local DonateCommand = {":donate", "@donate", "/donate", ";donate", "!donate", "_donate"}
  5. local MPS = game:GetService("MarketplaceService")
  6. local id = 0
  7.  
  8. game.Players.PlayerAdded:Connect(function(player)
  9.     player.Chatted:Connect(function(msg)
  10.  
  11.         for i, PromptCommand in pairs(DonateCommand) do
  12.             if msg:sub(1, PromptCommand:len()):lower() == PromptCommand:lower() then
  13.                 wait(0.9)
  14.                 MPS:PromptProductPurchase(player, id)
  15.             end
  16.         end
  17.     end)
  18. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement