So, basically, I have a roblox code that fires an event every time player’s character appears (so every time the player spawns, the event is being fired), and the code in localscript that responds to that event. But the problem is, the print statement in console shows that the “visible” property is being set to true, but in roblox the frame is not visible and the property is false. I have tried doing many things, putting the script inside the StarterPlayerScripts and referencing the frame from LocalPlayer.PlayerGui, right now the script is placed under the frame, and it still doesn’t work.
Here’s the code:
In the console there’s absolutely no errors, just this print statement “Menu visible: true” and the “visible” property not being actually changed. Does anyone know what’s the problem here?
The local script is parented under the frame. That means that the local script will be in the Frame inside of the Player’s PlayerGui. So I’m pretty sure that no the problem.
No, the only scripts that also change that property are the buttons which are located inside that gui and the code inside of the buttons doesn’t run at the start.