ServerStorage is not a valid member of Player?
I have been working on a spectate UI and I only want to make it appear when your not in-game, but I get this error at line 10: ServerStorage is not a valid member of Player. Can someone please help me.
01 | local player = game.Players.LocalPlayer |
02 | local SpectateButton = script.Parent.Spectate |
03 | local Intro = script.Parent.Parent.MainGUI.Intro |
06 | if not player:FindFirstChild( "Contestant" ) then |
07 | if Intro.Visible = = false then |
08 | SpectateButton.Visible = true |
10 | if script.Parent.Parent.Parent.ServerStorage.GameValues.GameInProgress.Value = = true then |
11 | SpectateButton.Visible = false |
13 | if script.Parent.Parent.Parent.ServerStorage.GameValues.GameInProgress.Value = = false then |
14 | SpectateButton.Visible = true |
16 | if Intro.Visible = = true then |
17 | SpectateButton.Visible = false |