i want to make a frame visible when prompting a dev product and not visible when that prompt is done and i dont know how to do this please help and i will give you solution ty
local MarketplaceService = game:GetService("MarketplaceService")
MarketplaceService:PromptProductPurchase(player, productId)
frame.Visible = true
MarketplaceService.PromptProductPurchaseFinished:Connect(function(userId, id)
if player.UserId ~= userId or productId ~= id then return end
frame.Visible = false
end)
for some reason the frame is visible when i join the game and when i buy the product is becomes invisible and it should be invisible until i prompt the gamepass what should i do
Make some sort of if statement so it’s not automatically making the frame visible when the player joins.
Is this purchase supposed to be prompted immediately?
no its for when i am prompted to buy any gamepass or product the frame pops up
I’m reading your other replies to get a better understanding of the issue, but I can’t seem to understand the problem. Is it ok if you provide a video?
i want to make a frame visible when a gamepass is prompted and invisible when the process is complete
Yeah but can you provide a video because I really don’t see anything wrong with the script
i cant but when i join the game the frame is already visible then when i prompt the purchase it becomes invisible
I’m sorry but I’m not sure what the problem could be. Can’t help you
ill figure it out ty though char char
frame.Visible = false
on top of the script
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.