here is my code

script.Parent.Touched:Connect(function(hit) if game.Players:GetPlayerFromCharacter(hit.Parent) then local player = game.Players:GetPlayerFromCharacter(hit.Parent)

if script.Parent.team.Value == player.Character.color.Value then
	
	print(player.Name)
	player.Character.run.Value = true

else
	print('ur omom')
end
end

end)

Note: both compared values are the same color