RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"create a text button that lets you choose a team"
-- local script local button = script.Parent local Teams = game:GetService("Teams") local function chooseTeam() local player = game.Players.LocalPlayer local teamChoice = Teams:FindFirstChild("TeamName") -- Replace "TeamName" with the desired team's name if teamChoice then player.TeamColor = teamChoice.TeamColor player.Neutral = false else print("Team not found") end end button.MouseButton1Click:Connect(chooseTeam)