How do I get a part with a space in its name?

What do I do when I want to select a part whose name has a space ESTe

1 Like

use :FindFirstChild()

workspace:FindFirstChild("Cool part")

edit: you should stick to naming everything without spaces anyway, it is just better practise.

1 Like

Do

game.workspace["Cool part"]

Or just change the name of cool part

game.workspace.CoolPart

Instead of taking a screen shot of your screen you can do ``` which makes it a code block
Example:

print ("Hello World!")
6 Likes

That’d be WaitForChild. FindFirstChild will either get the first child matching the name specified or return nil if no such child exists. WaitForChild will yield the thread until a child with the given name is found or if a timeout is specified then nil will be returned if after that many seconds the child isn’t found.

2 Likes

Jesus, the things I say at night. I remember thinking that they said WaitForChild, but I somehow put FindFirstChild in my post. My fault.

1 Like