local Y=script.Parent.Parent.Parent.Parent.Parent.Parent.Name local n=script.Parent.TextLabel.TextColor.Color function Click(o)if game.Players[Y].TeamColor~=(game.Teams:FindFirstChild(script.Parent.Name)).TeamColor then game.Players[Y].TeamColor=(game.Teams:FindFirstChild(script.Parent.Name)).TeamColor script.Parent.Border.ImageColor3=Color3.new(.333333,1,0)wait(.25)script.Parent.Border.ImageColor3=n wait(.1)if script.Parent.Parent.Parent.CanKill.Value==true then script.Parent.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health=0 end else script.Parent.Border.ImageColor3=Color3.new(1,0,0)wait(.25)script.Parent.Border.ImageColor3=n wait(.1)end end script.Parent.MouseButton1Click:connect(Click)
-- tu dois assigner la bonne couleur

local plr = script.Parent.Parent.Parent.Parent.Parent.Parent.Name
local normalBorderColor = script.Parent.TextLabel.TextColor.Color

function Click(mouse)
	if game.Players[plr].TeamColor ~= game.Teams:FindFirstChild(script.Parent.Name).TeamColor then
		game.Players[plr].TeamColor = game.Teams:FindFirstChild(script.Parent.Name).TeamColor

		script.Parent.Border.ImageColor3 = Color3.new(0.333333, 1, 0)
		wait(0.25)
		script.Parent.Border.ImageColor3 = normalBorderColor
		wait(0.1)
		if script.Parent.Parent.Parent.CanKill.Value == true then
			script.Parent.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0
		end
	else
		script.Parent.Border.ImageColor3 = Color3.new(1, 0, 0)
		wait(0.25)
		script.Parent.Border.ImageColor3 = normalBorderColor
		wait(0.1)
	end
end

script.Parent.MouseButton1Click:connect(Click)
