Text is Different as value, but returns true

I’m trying to make it so when a text value changes. So, I check if the original text is different than the value, and it is, but the code says it’s the same.

Here is the code:

	print(script.Parent.MetalImage.TextLabel.Text ~= Store.Metal.Value) -- returns true, when it is false

nvm solution:

tonumber(script.Parent.MetalImage.TextLabel.Text) ~= Store.Metal.Value

the textlabel is a string and the value is a… value which makes it different.

tonumber() changes it to a value

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