Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a choose your team sign with a surface GUI?

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

0

You can't unless its a local part.

0

what you could is in front of that button for the team place a invisible part with a clickdetector. do it that way

0

You would use a remote event

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.