Cant figure out Developer Products

Im trying to make a Revive button that costs Robux.
when the player dies, a GUI pops up on their screen with a text button that says “Revive” when the player clicks that button a Developer product should pop up and if they buy it, they get teleported to the start, and the GUI goes away, the part where they teleport to the start works fine, but I cannot figure out how to make the GUI go away, ive been at it for hours, any help/tips would be amazing.

just… disable the gui upon purchasing the product?

why dont poor people just… get rich?

besides, after purchasing the product, a different GUI appears

“Your purchase of [product] succeeded!”
insert ok button here

i don’t get the problem

doesnt Gui.Enabled = false work?

ive got 2 ideas:
you arent properly detecting the purchase
you are trying to disable the gui server sided

other than that, no clue