--Put this script in ServerScriptService

game.Players.PlayerAdded:Connect(function(plr)
	local Tracker = Instance.new("IntValue")
	Tracker.Name = "Tracker"
	Tracker.Parent = plr
    local Clone = game.ServerStorage.SkipGui:Clone()
    Clone.Parent = plr.PlayerGui
end)

local MP = game:GetService("MarketplaceService")
MP.ProcessReceipt = function(receipt)
	local plr = game.Players:GetPlayerByUserId(receipt.PlayerId)
	if game.ServerStorage.Locations:FindFirstChild(tostring(plr.Tracker.Value+1))~=nil then
		local To = workspace:FindFirstChild(game.ServerStorage.Locations:FindFirstChild(tostring(plr.Tracker.Value+1)).Value)
		plr.Character:MoveTo(To.Position)
		local New = Instance.new("StringValue")
		New.Name = plr.Name
		New.Parent = To.Script
		plr.Tracker.Value = plr.Tracker.Value + 1
		return Enum.ProductPurchaseDecision.PurchaseGranted
	else
		warn("PURCHASE DENIED")
		return Enum.ProductPurchaseDecision.NotProcessedYet
	end
end

