I am trying to make a spawn room where players can use a board to choose their team but I don't know how to specify the player to perform the action on.
1 | player = ? |
2 | button = game.Workspace.JoinTeam.SurfaceGui.teamRed |
3 |
4 | script.button.MouseButton 1 Click:connect ( function () |
5 | player.TeamColor = BrickColor( "Bright red" ) |
6 | player:LoadCharacter() |
7 | end ) |