Frame visible from a Textbutton deep inside Frame

  1. What do you want to achieve? Keep it simple and clear!

is it possible that after I make a purchase from my shop with a button, the shop will close right after so I can get an animation of the item purchase to pop up

  1. What is the issue? Include screenshots / videos if possible!

can’t figure out the line of script used to achieve this

  1. What solutions have you tried so far?

tried just sourcing the frame and then setting it to Visible = False
using a local frame = game.StarterGui.ShopGui.Frame
then setting frame to false

my frame just doesn’t want to leave oof

1 Like

This script should make your Frame, and it’s contents fully transparent, considering that you have the heritage correct.

game.Players.LocalPlayer.PlayerGui.ShopGui.Frame.Visible = false
2 Likes