So I have the script:
v:Function(player, button)
and the module:
function v.Function(player, button)
print("the test has passed")
print(player)
print(button)
end
(I omitted irrelevant code)
so basically when it prints, it prints a random table address for player and the player's name for the button.
BUT when I do this:
function testbutton.Function(playerr, player, button)
print("the test has passed")
print(player)
print(button)
end
it works how I want it to. I know I can simply use the workaround, but can someone tell me why this happens? I doubt it's my code's fault, did I write the function in the module wrongly?
(im sorry i just took a ~2 month break from roblox lua)

1 comment
thank you so much