script.Parent.MouseButton1Down:connect(function() local player = game.Players.LocalPlayer local WhoClicked = player.Name game.Players[WhoClicked].Team = 'Baby/Child' end)
i keep getting this error 19:47:06.415 - Players.DaHazza.PlayerGui.Team Selector.Start.Baby/Child.LocalScript:4: bad argument #3 to 'Team' (Object expected, got string)

2 comments
Also remember that :connect() is deprecated, use :Connect() instead. But upvote otherwise.
:connect() isn't deprecated? I have never been told that by ANYONE.