Does anyone know how to learn about this feature on the create Hub website?

I’m new to coding and just starting to learn

I used to think that anything after the word “function” is a function

But I came to realize that it’s actually called a method

I used to think that calling a function after a semicolon is called a method

ex) local function MyClass:setValue(newValue)

But they said it’s not a method, it’s just a function

I understand everything else, but this feature is difficult because it has a lot of unfamiliar things

Does anyone know how to learn about this feature on the create Hub website?

Im a little confused on what your asking?

But to answer your question, the reason this doesnt work is because MyClass has probably not been defined as a table.

local function MyClass:setValue(newValue)