Randomizer keeps rolling

I’m trying to make it so that these string values are randomized, but they aren’t equal to the other strings.

The thing is, map2 keeps rolling and switching no matter what

map1.Map.Value = mapValues[math.random(1, #mapValues)]
	map2.Map.Value = mapValues[math.random(1, #mapValues)]
	if map2.Map.Value == map1.Map.Value then
		repeat wait()
			map2.Map.Value = mapValues[math.random(1, #mapValues)]
		until map2.Map.Value ~= map2.Map.Value
	end
	map3.Map.Value = mapValues[math.random(1, #mapValues)]
	if map3.Map.Value == map1.Map.Value then
		repeat wait()
			map3.Map.Value = mapValues[math.random(1, #mapValues)]
		until map3.Map.Value ~= map2.Map.Value and map3.Map.Value ~= map1.Map.Value
	end

You’re checking if map2 is not equal to itself but it will always be equal to itself (the repeat statement will continue forever)

OHHH THANK YOU, im so dumb its supposed to be map1.map.value thank you!

i’m so out of it a pulled an all nighter last night