Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to I refer to an object that has spaces in its name?

For example, if I wanted to clone a part it would be this:

game.Workspace.Part:Clone()

But what if I wanted to clone a part that had spaces in its name? Obviously,

game.Workspace.Part With Spaces:Clone()

wouldn't work. How do I refer to something that has spaces in its name?

1 comment

1

game.Workspace["Part With Spaces"]:Clone()

1 answer

✓ Accepted answer

Just to let you know, you didn't have to look this up. It's probably pretty easy to find but ill give you an answer anyways.

["PART WITH SPACES"] (Make sure to remove the period before the bracket, it is not needed)

That's how it would work. A bracket and some quotation marks. Hope this helped!

This discussion is preserved as it was. New answers, comments, and votes are closed.