#need help with simple gui script pls </3

1 messages · Page 1 of 1 (latest)

flint mist
#

so i'm trying to make a feature in a very tiny room that i've made where you open a 'scrollable' letter using a proximity prompt, the exit button script i've made, it isn't working 💔 HELP ME

flint mist
#

pls help

#

pls

thorn monolith
#

script.parent,.exit is the script

feral ravine
#

Is ur gui in startergui?

thorn monolith
#

and did you use chatgpt for this

feral ravine
#

Oh yea there is many stuff with "Exit"

solid edge
# flint mist so i'm trying to make a feature in a very tiny room that i've made where you ope...

if its not already, make sure your ScreenGUI is in StarterGui

id recommend putting your gui stuff in a Frame next time (inside the ScreenGUI), makes it so all of its' visibility can be toggled on and off just by making the Frame visible or not, instead of your ScreenGUI (otherwise, the Frame makes it easier to move everything inside it around + can give it a background if needed, assuming the Frame is the size of the screen behind the GUI stuff)
also, label your shit (what is ScreenGUI for? What does the LocalScript do?) your future self will thank you

script.parent.Exit doesnt sound like its referencing anything properly
your script.parent.Exit sounds like its trying to search for something on the same level of your ScreenGUI that is labeled Exit, that of which there is none
script.parent references your Exit button

are you able to try the following:

PlayerGUI = game.Players.LocalPlayer.PlayerGui (top of your script, line 1)

PlayerGUI.ScreenGui.Enabled = false (inside the function, the one that triggers when the button is clicked)
and tell me if that does anything?

delicate mortar
#

Nonsense

thorn monolith
#

literally just do script.parent.parent.enabled = false

flint mist
#

i used a tutorial

#

thank you let me try

solid edge
thorn monolith
#

its not that complicated

flint mist
#

so i deleted the script

flint mist
#

all i want is this to open a scrollable frame

#

with a close button