SetAttribute incorrectly specifies name limitations

SetAttribute specifies that:

  • Names must only use alphanumeric characters and underscore.
  • No spaces or unique symbols are allowed.

But this is incorrect. SetAttribute allows the dash/hyphen symbol as well as forward slashes.

It’s also unclear what “unique symbol” means in this context, this seems like a mistake.

Page URL: https://create.roblox.com/docs/reference/engine/classes/Instance#SetAttribute

1 Like

Hi @Ed_Win5000.

Thanks for flagging. I’ve went ahead and added some clarifications on the acceptable name limitations for attributes. This docs change should kick in the next day or so.

Appreciate your help in making our docs clear and correct! Have a great rest of your week.

1 Like