What does "~" mean?

As the title states, I tried searching what it does because I found code that had blah ~= blah and I didn’t know what it meant. I searched up “What does “~” mean Roblox” but it just showed what Roblox is…

3 Likes

It means ‘not equals to’. Example:

if Player.Name ~= "Player1" then
6 Likes

here are all of the operators and what they mean that just means kinda like not like if its not something then.

3 Likes

Just to clarify, ~ is meaningless by itself (it is bitwise NOT in most languages and also in Lua 5.3+, but in Luau/Roblox it’s meaningless). ~= has a meaning, not ~.

4 Likes