Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can Someone Tell Me What This Means?

I'm confused what ~= mean for example:

game.Players.PlayerAdded:connect(function(player)
    player.CharacterAdded:connect(function(character)
    if character ~= nil then
            character.Head.Transparency = 1
            character:FindFistChild("Right Arm").Tranparency = 1
        end
    end)
end)

1 answer

~= means "not equal to". Like 3 ~= 5 or true ~= false. if character ~= nil then is basically saying "if the character exists then". Hope this helped!

3 comments

0

It's more saying "if the character does not not exist then" than it is the other way around.

0

No, it says if character ~= nil, which is saying if character is not equal to nil, so if character doesn't not exist, or does exist

0

Thanks! You guys helped a lot :)

This discussion is preserved as it was. New answers, comments, and votes are closed.