Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can Someone Tell Me What This Means?

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

~= 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!

0
It's more saying "if the character does not not exist then" than it is the other way around. User#2 0 — 10y
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 TurboFusion 1821 — 10y
0
Thanks! You guys helped a lot :) crazyray32 0 — 10y
Ad

Answer this question