Why is this returning false when both values are equal?

could you show your code? you were making a lot of syntax issues earlier

Syntax issues? Like what? >>chars

Edit: my code is above.

I ignore everything when creating temporarily lines of code. I create them with only functionality in mind

I meant the code where you use FuzzyEq
that code you referenced just now is from before that

attempt to index boolean with 'R'

Input: areColorsEqual(raycastResult.Instance.Color==workspace.CountryData[countryName].C3.Value)

My bad, just caught it. Too many lines so I’m just skimming them now

I didn’t send that code. >>chars

Tried it now, it detects more provinces but some are still left unchanged.

Why are you inputting an argument with w comparison operation in the middle of it? That is of course going to output a boolean.

1 Like

My bad, just caught it. Too many lines so I’m just skimming them now

maybe some are left unchanged because their colors are too different? try outputting things and sharing your code for debugging

Can you print out the ClassName of
print(workspace.CountryData[countryName].C3.ClassName)

I know what C3 is. It is a Color3value.

Ik but your error is attempt to index boolean so Im just curious

Read above, fixed that. >>chars

So your thingy should be fixed now, right?

No it is not. Just that specific line >>char limit chars

Edit: just hit the 1 hour reply limit.

Same issue. Just that line specifically has been fixed, which still has the same issue.

I increased the epsilon and it doesn’t change the end-result. @au_tk

@4SHN I’m not comparing red with blue. The red city has no relation to the problem
@weakroblox35 I am using attributes for this. The issue is that theres more than 3200 meshparts and cities; this means any more and the game is unplayable for many devices.

This means I have to allow some countries to share provinces. That is why I have to check if the province is a certain colour, in order to check if it is owned by the player country.

What’s wrong now?
chatararrarsrars

following up on this for later ^ J9 stated the issue in the post above this
cc @au_tk

Oh, wouldn’t you just increase the epsilon?