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
#need help with simple gui script pls </3
1 messages · Page 1 of 1 (latest)
script.parent,.exit is the script
Is ur gui in startergui?
and did you use chatgpt for this
Oh yea there is many stuff with "Exit"
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?
Nonsense
literally just do script.parent.parent.enabled = false
nope
i used a tutorial
thank you let me try
@flint mist sorry, i typo'd the screengui = false line, fixed it now
so i deleted the script

