In the StarterGui I have a frame called IntroFrame and in that I have a text button called X. Whenever I play the game and click the text button and error pops up saying:
20:30:06.306 - Players.Play_MazeOfHeck.PlayerGui.ScreenGui.IntroFrame.X.CloseBottonScript:2: attempt to index field ‘LocalPlayer’ (a nil value)
Do you mean as in after they respawn or as in once they close it for the first time and they leave the game and cant open it again. if you mean after they respawn then you can utilize the ScreenGui.ResetOnRespawn property, but if you are talking about making it so that it cannot show ever again you will probably have to use Datastores