I Need a lot of help whit this. I Wanted to Make a screenGui that the game is closed but you could buy access to the game when you are over the void on a checkpoint. I want it to teleport you to the entrance of the game when you bought it + deleting the screen gui that says that the game is closed.
Here Is My Explorer, If you want more info on this make sure to tell me in the Comments. Image Of My Explorer In New Tab
My Script From The Image (In ServerScriptService):
local MarketPlaceService = game:GetService('MarketplaceService')
local id = 448687322
MarketPlaceService.ProcessReceipt = function(receiptInfo)
for i, player in ipairs(game.Players:GetChildren()) do
if player.userId == receiptInfo.PlayerId then
if receiptInfo.ProductId == id then
--Teleport To Part
end
end
end
end
Please Help Me!

2 comments
This is a request.
you can teleport a player by changing the position of humanoidrootpart, the other parts will follow