They said 1 is not 1


function bunteakdon(imva)
	print(imva/100,script.Parent.naname.Value)

	if imva/100 == script.Parent.naname.Value then
		print("TURE")
	else
		print("FALSEE"..imva/100-script.Parent.naname.Value)
	end
end

script.Parent.Parent.vang.Event:Connect(bunteakdon)

I made a localscript which get number and judge that to model’s value.

It print “True” If number and value same,
but print “False” and “number-value” if they different.

it looks So simple but look at this glorious result :

image

Pls help me they bullying me now

1 Like

i believe you are trying to compare a number with a string, if naname.Value is a StringValue then do imva/100 == tonumber(naname.Value)

1 Like

Uploading: image.png…

Thank you It worked!
I didnt know I made those values ‘StringValue’… but how can they actually solved ‘number-value’ before?

you can do math with strings and numbers, but you cant compare them. 1 + “1” = 2, however 1 is not equal to “1”

its just because lua is cringe

1 Like

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