The GUI frame's "visible" property doesn't change through the script, but print says that it does

Yeah I’m really unsure. I don’t have anything left to say, maybe just check ONE MORE TIME if the script is under the correct frame. If not, well, I guess this is unsolved then.

Снимок экрана 2023-06-03 235102 it is

Idk maybe try changing it to this and see:

script.Parent.Visible.Value = true

Obviously this probably won’t work but i guess maybe give it a shot.

Can you watch out for any changes happening to the Main?
Check the Visible box while the script is running. (Monitor it until the client script sets it to visible)

Error: “Players.BroDadi.PlayerGui.ScreenGui.Frame.MenuScreen.Main.LocalScript:3: attempt to index boolean with ‘Value’”

Yeah honestly I don’t know what you should do next. Good luck.

1 Like

Maybe the OnClientEvent isn’t being fired for some reason? Can we see the script that fires it?

1 Like

It is, because it prints “Menu visible: true” into the console, even though it’s not being displayed. This issue is really weird

1 Like

Can you try what I’ve said above? Maybe the value is being set to true but then being set to false again.
Also, check if ResetOnSpawn is false.

2 Likes

Hmmm… I am just guessing all possible events…
Is ResetOnSpawn in the ScreenGui enabled or disabled? IF it is enabled, can you disable it and see what happens?

1 Like

Maybe you should put the print(), into the script of which it is being fired from. See if it keeps printing it then. Just a matter of trial and error, which is what I do if something doesn’t work all the time.

Probably because ScreenGui’s ResetOnSpawn is enabled and the UI goes back to the default.

1 Like

I disabled resetonspawn, and it worked, thanks

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.