I tried making a simple team change gui that obviously changes your team.
Here is the local script for one of the buttons:
local player = game.Players.LocalPlayer
script.Parent.MouseButton1Click:connect(function()
player.TeamColor = BrickColor.new ('Bright blue')
player.Character.Humanoid.Health = 0
end)
It was working a couple days ago but now it isn't.

2 comments
I don't know what's wrong with it, I tested it myself and it worked fine. Is Filtering Enabled on?
Is it on Localscript or Script? This has to be on a Localscript I believe.