The following code prints ‘nil’. Why isn’t it printing a value?
local function test(mytext) print(mytext.width) end test("moo")
Edit:
Oops, I think I know.
mytext is not a display object therefore it hasn’t got the width property.
Sorry to bother you.