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

How to write an identifier with spaces?

I am trying to identify a tool in a script so that it would clone the tool from Replicated Storage and into the player backpack only I cannot identify the tool if the name has spaces in it. It of course works fine without the spaced name, but I wanted to know if it were possible to identify the tool if it had spaces in its name. Help?

Tool=game.ReplicatedStorage.GuavaIceTea -- Is it possible to still identify this tool if it were named Guava Ice Tea?

1 answer

✓ Accepted answer

It is possible. I'd do it like this:

Tool=game.ReplicatedStorage["Guava Ice Tea"]

Easy enough, you could do

Tool=game.ReplicatedStorage:FindFirstChild("Guava Ice Tea")

1 comment

0

Thanks so much! :D

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