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")
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")
It will use the string
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank you