I've written it out exactly as I think it should, but it doesn't work. This should make the current Frame disappear, and a new one to come forward. Can you please help? Thanks :)
1 | local CameraIcon = game.StarterGui.PhoneGUI.Menu.CameraIcon |
2 |
3 | CameraIcon.MouseButton 1 Click:connect( function () |
4 | game.StarterGui.PhoneGUI.Menu.Visibile = false |
5 | game.StarterGui.PhoneGUI.ComingSoon.Visibile = true |
6 | end ) |
As DragonZord said, you're actually editing the StarterGui instead of the Player's current GUI.
It's a simple fix, and you should be using a LocalScript for this, so:
1 | local CameraIcon = game.Players.LocalPlayer.PlayerGui.PhoneGUI |
2 |
3 | phoneGui.Menu.CameraIcon.MouseButton 1 Click:connect( function () |
4 | phoneGui.Menu.Visible = false |
5 | phoneGui.ComingSoon.Visible = true |
6 | end ) |