I was check on the document. But there is nothing there.
So can someone explain what is Instance:GetAttribute() used for please?
I was check on the document. But there is nothing there.
So can someone explain what is Instance:GetAttribute() used for please?
They're a bit like tags or properties. You can set the attribute (a string value) to a value you want for any instance using SetAttribute, for example, Instance:SetAttribute("example", 123). It's a key-value pair system.
It's sorta like assigning a custom property to an instance.
GetAttribute returns the value of the given string, and GetAttributes returns all the given key-value attributes assigned to the instance.
They talk about it a bit more on the developer forum update post.
This discussion is preserved as it was. New answers, comments, and votes are closed.
1 comment
Thank for the explanation, it help me a lot. And I wonder when Roblox will update their documents?