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

Question about "or" operator?

If I make the first argument nil, will the function use it or will it use Torso?

local function RandomFunction(Pos,FollowPart)
	local RandomVariable = Pos or FollowPart
end

RandomFunction(nil,"Torso")

1 answer

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