Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

TeamSelection is not a valid member of..?

Asked by
LuiOG 0
3 years ago

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

Answer this question