This is my script:
script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.Team = game.Teams["Class-D"] game.Players.LocalPlayer.Character.Humanoid.Health = game.StarterGui.TeamSelector.Enabled = false end)
I also have multiple other Gui buttons having the same Script but different team.
Line 3 is incomplete. Perhaps that is why. script.Parent.MouseButton1Click:Connect(function() game.Players.LocalPlayer.Team = game.Teams["Class-D"] game.Players.LocalPlayer.Character.Humanoid.Health = 0 game.StarterGui.TeamSelector.Enabled = false end)