Help with gamepass code

local ID = 0

local MarketplaceService = game:GetService("MarketplaceService")

MarketplaceService.PromptGamePassPurchaseFinished:Connect(function(plr, ido, purchased)

		if purchased and ido == ID then
			-- code?



			if MarketplaceService:UserOwnsGamePassAsync(game.Players[char.Name].UserId, ID) then
				-- code?

i want to make a script where you buy a gamepass and a tool is given to the player right then and there. i know how to check if the player has it but i dont know what to do next and i want to understand it so can someone help me?

whoever helps me gets solution mark

you can insert a tool into server storage or replicated storage and clone that to give to the player when they have purchased the gamepass