If someone click the GUI button, I want to create citizen team and make that player to be in citizen team. I successed for making a Citizen team but I failed that player to be in the citizen team. How can I fix it?
script.Parent.MouseButton1Click:Connect(function(player) local Team = game:GetService("Teams") local Citizen = Instance.new("Team", Team) Citizen.TeamColor = BrickColor.new("New Yeller") Citizen.AutoAssignable = false Citizen.Name = "Citizen" player.TeamColor = "New Yeller" game.StarterGui.ScreenGui:Remove() end)
