Dev Product: Pay to teleport not working ?
So basically I want to make this dev product so when you click on the GUI, you pay and then you teleport to the position I've set. What's wrong with it?
01 | local MarketplaceService = Game:GetService( "MarketplaceService" ) |
02 | local buyButton = game.StarterGui.TextButton |
03 | local productId = 22416362 |
05 | buyButton.MouseButton 1 Click:connect( function () |
06 | MarketplaceService:PromptProductPurchase(player, productId) |
10 | script.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(- 161.5 , 465.8 , 35.5 ) |
13 | script.Parent.MouseButton 1 Down:connect(Click) |