What is ~ used for
~
It's used for "not equal to".
if Blah ~= OtherBlah then
local blah = "blah if blah ~= blarg then print("~= means not equal to, as shown in this example.") end