Hello, I was wondering how I could fix my GUI that reads teams, well here is my code.
script.Parent.MouseButton1Click:Connect(function()
game.Players.LocalPlayer.Team = game.Teams.RedTeam
end)
local NumberOfPlayers = 0
script.Parent.MouseButton1Click:Connect(function()
NumberOfPlayers = NumberOfPlayers + 1
script.Parent.Text = NumberOfPlayers
script.Parent.Parent.Parent.Parent.Visible = false
end)