Identical strings not being equal to eachother

I’m trying to check if a string is the same as another string.
(One is a string variable and one is a string value. It’s in a server script in serverscriptservice

The strings are identical in the output, but everytime I check if they are the same it comes out as false

I’ve tried converting the stringvalue as another new variable with tostring, I’ve tried string.find and string.match.

Sometimes it says that it tries to compare a string to an instance but neither of them are instances, and I have not forgotten to specify the value of the stringvalue.

It isn’t anything specific, so I haven’t included any code.
Thank you!

show us the script

Nah stop being lazy and use your psychic powers

4 Likes

I didn’t show the script because its like a singular if statement, and I’ve tried multiple different things. Any information there is about it I’ve already mentioned.

Whoopsies nevermind. I’ve just realised that it’s because of the way I got one of the strings, and I forgot to specify player**.name** rather than just player. Sorry!

and THATS why you have to SHOW US THE SCRIPT

1 Like

To be fair it’s the main script of the game and is currently 97 lines long. I spent hours trying to find a solution just for the answer to be that :sob:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.