So I have a script down below
local test = true
function change(test)
test = test
end
change(false)
print(test) --returns true
Will the above code set the parameter to itself since it has the same name as the variable on line one? Or will it set the test var on line 1 to false? I know this is a problem when I'm coding in java, typically I just use the this keyword to differentiate the parameter with the instance variable in the class. Let me know if I didn't explain this well enough, its kind of hard to express what I'm asking.

2 comments
Thanks, but someone already answered this question...
They answered incorrectly.