Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- || 📜 AUTHOR: @4zx16 || GEAR/BUY COMMAND || add/id || buy/id
- ]]
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- if string.sub(string.lower(msg),1,3) == "add" then
- game:GetService("InsertService"):LoadAsset(string.sub(msg,5)):GetChildren()[1].Parent = player:WaitForChild("Backpack")
- end
- end)
- end)
- game.Players.PlayerAdded:Connect(function(player)
- player.Chatted:Connect(function(msg)
- if string.sub(string.lower(msg),1,3) == "buy" then
- game:GetService("MarketplaceService"):PromptPurchase(player, string.sub(msg,5))
- end
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement