I made a developer product script so when you click apart, it prompts a product purchase and when you buy it, it should teleport you but it doesn't work. Please help!

Heres my script:

local MarketplaceService = game:GetService("MarketplaceService")
local buyButton = script.Parent
local productId = 000000000 -- The ID

buyButton.MouseButton1Click:connect(function(player)
MarketplaceService:PromptProductPurchase(player, productId)
end)

function Click()
game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(-000.0, 000.0, 00.0) -- Positon
end

script.Parent.MouseClick:connect(Click)