I have this script

local TeamSelector = game.Players.LocalPlayer.PlayerGui.TeamSelection
local GUI = game.Players.LocalPlayer.PlayerGui.MainHUB

script.Parent.MouseButton1Click:Connect(function()
	GUI.Enabled = false
	
	TeamSelector.Enabled = true
end)

and when i start i get "TeamSelection is not a valid member of PlayerGui "Players.a41444.PlayerGui"  -  Client  -  LocalScript:1"

https://i.imgur.com/MS0qvwD.png player