So i am making an Assassin game, and i want to create a shop to show all the different knifes in the game that people can buy. But i seen in a lot of groups that they have t shirts that gives someone a knife when they buy the t shirt in game. So my question is, what is the script for that to be possible in my game.
heres a link as to what im talking about : https://www.roblox.com/catalog/4868462903/Nightsky-Bundle
local ASSET_ID = --put the item id here local Players = game:GetService("Players") local MarketplaceService = game:GetService("MarketplaceService") local PlayerOwnsAsset = MarketplaceService.PlayerOwnsAsset Players.PlayerAdded:Connect(function (player) local success, doesPlayerOwnAsset = pcall(PlayerOwnsAsset, MarketplaceService, player, ASSET_ID) if doesPlayerOwnAsset then -- put grant knife skin script here else print(player.Name .. " doesn't own " .. ASSET_NAME) end end)