How to put a part with numbers in it's name into a script

Amateur here.
I’ve been looking around for something simple but the best I could find was a part sorter.
I just wondering how to make a part name with a number into a script.

game.workspace.2a.Value.Value = -- blah blah blah
2a is the problem.
If anyone knows a link that I couldn’t find or can tell me, thanks!

1 Like
game.workspace["2a"].Value.Value = -- blah blah blah

This way you can use a number in a part name and still have the script refer to the part correctly.

2 Likes

You could do

game.workspace["2a"].Value.Value =
1 Like

I’ve been using curly brackets!!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.