I have a code inside a script, inside a ClickDetector, inside a part. When I click the part it should open a Gui which is inside the PlayerGui Folder but I just get the error; InfoGui is not a valid member of PlayerGui
But if I look ínside the PlayerGui Folder it is there! It is spelled correctly, I've checked many times but the script can't find it!
Here's the script;
script.Parent.MouseClick:Connect(function(player)
player.PlayerGui.InfoGui.ImageLabel.Visible = true
end)

7 comments
Is this a local or server script? Server side cannot access a player’s PlayerGui.
Dude, I already answered on your question
But this doesn't work!
I'm sorry HaveASip but I've never understood RemoteFunctions or RemoteEvents
Did you do what I said? I need to insert remote event into replicatedstorage and put the name of remote event into both my scripts
Now I didn't understand what you meant
the server cannot see things inside of the PlayerGui unless it was made by the server