local MarketplaceService = game:GetService("MarketplaceService")
local players = game:GetService("Players")

local ProductID = 

local function processReceipt(receiptInfo)
	local player = players:GetPlayerByUserId(receiptInfo.PlayerId)
	if not player then 
		return Enum.ProductPurchaseDecision.NotProcessedYet
	end
	if player then 
--How would i make it teleport the buyer to a certain position
end
	
	return Enum.ProductPurchaseDecision.PurchaseGranted
	
end 

7 comments

0

Your question is too vague. Please post a description.

0

I want it to teleport the player past a VIP door when they buy the dev product

0

You can simply get the player's character then do "CharacterMoveTo:(position)"

0

This is not a request site. And I don't think you should be posting on scripting helpers if you don't have an error on your script.

0

Too vague.

0

Thank you Player1_Joined I just needed pointing in the correct direction, It's sorted now. Clearly the only one capable of actually helping here. If you can't understand how to read a question you have no chance of solving the problem.

0

ok make it more detailed and not "copy paste" next time. i dont understand whats going on here and a simple google search can actually solve your problem. You can edit your question too by the way