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.
player = ?
button = game.Workspace.JoinTeam.SurfaceGui.teamRed
script.button.MouseButton1Click:connect (function()
player.TeamColor = BrickColor("Bright red")
player:LoadCharacter()
end)

3 comments
You can't unless its a local part.
what you could is in front of that button for the team place a invisible part with a clickdetector. do it that way
You would use a remote event