Cant change gui visibility

i have a gui that i need to change the visibility for its a frame and i can see that when i make it visible manually and click play i can see it but if i try to use a script for it, it doesnt work and i dont get an error message either, so what do i have to do to make this work

8 Likes

Is the script local or server?

3 Likes

local

2 Likes

Are you using StarterGui or PlayerGui?

Changes made to StarterGui won’t appear, as it is simply where the GUIs are stored to be cloned into PlayerGui.

Read up on Player, LocalPlayer and PlayerGui on the wiki, but here’s a quick example of what I mean:

game.StarterGui.ScreenGui.Frame.Visible = false -- won't appear

game.Players.LocalPlayer.PlayerGui.ScreenGui.Frame.Visible = false -- will appear
37 Likes

Thanks a ton i’ve been trying to figure this out for a while

1 Like