Advertisement
4zx16

Insert Catalog Gear/Buy Command

May 28th, 2022 (edited)
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.60 KB | Source Code | 0 0
  1. --[[
  2.  || 📜 AUTHOR: @4zx16 || GEAR/BUY COMMAND || add/id || buy/id
  3. ]]
  4. game.Players.PlayerAdded:Connect(function(player)
  5.     player.Chatted:Connect(function(msg)
  6.        
  7.         if string.sub(string.lower(msg),1,3) == "add" then
  8.             game:GetService("InsertService"):LoadAsset(string.sub(msg,5)):GetChildren()[1].Parent = player:WaitForChild("Backpack")
  9.         end
  10.     end)
  11. end)
  12. game.Players.PlayerAdded:Connect(function(player)
  13.     player.Chatted:Connect(function(msg)
  14.  
  15.         if string.sub(string.lower(msg),1,3) == "buy" then
  16.             game:GetService("MarketplaceService"):PromptPurchase(player, string.sub(msg,5))
  17.         end
  18.     end)
  19. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement