Hi, I'm working on this VIP server only GUI, and I want the VIP Server owner to have this GUI. The problem is, one of the things in this VIP server only GUI is a team color changer. My script is here:
SCRIPT:
function leftClick()
--on left click
local TeamBox = script.Parent.Parent.BlueBox.Text
--find first child which is related to the blue box
local TeamPlayer = game.Players:FindFirstChild(TeamBox)
--change that players team color to "Cyan"
TeamPlayer.TeamColor = "Cyan"
end
script.Parent.MouseButton1Click:Connect(leftClick)
What I want it to do is to change the players team color to blue (Cyan).
Anybody help? Thanks.

1 comment
actually i need it to change the players team, forcing them to join that team