-- подсветка выбранного


me=script.Parent

wait(5)
old=me.Value
new=old
while true do
	wait()
	new = me.Value
	if new ~= old then
		-- print(old,"<>",new)
		if old ~= "" then
			tmp1 = me.Parent.imgChar.frmChar:FindFirstChild(old)
			tmp1.ImageButton.ImageColor3 = Color3.fromRGB(255,255,255)
			tmp1.ImageButton.ImageTransparency=0
		end
		if new ~= "" then
			tmp1 = me.Parent.imgChar.frmChar:FindFirstChild(new)
			tmp1.ImageButton.ImageColor3 = Color3.fromRGB(255,0,0)
			tmp1.ImageButton.ImageTransparency=0.5
		end 
		old = new 
	end
end
