How would I go about making object functions?

I wanna make a system where I can have a function to certain objects, so I could do:

object:ExitMenu() for example, on an instance.

I believe it’s possible but I’m not sure how to go about it; I wanna have some extra functions for some objects;

You can use the new beta attributes feature to do something like this.

You can find the post regarding this here:

Once you enable it, you can add your own “properties” to the properties menu for your specified object. To define it using code, you can write this:

local RandomText = instance:GetAttribute("RandomText")
1 Like

They don’t support functions, from my understanding it seems like you’re supposed to use “self” in a module script. I had some problems, I’ll check;