My script can't recognize a model with spaces in its name.
How can I fix this?
Thank you.
I assume you mean "access", not recognize, in which case you'll need to use bracket access notation:
workspace["Part name With Spaces!"]
Inside the brackets can be anything that eventually evaluates to be a string (i.e. a function call or a concatenation), which is incredibly useful:
local index = 5 workspace.Rooms["Room:" .. index]
You could also say it as a string, like or playerName == "Stealth Pilot" That works too, and it's a bit less messy than brackets all over if you're making a really long script