So I have a part named "Evil Brick" I tried to delete it by typing "game.Workspace.Evil Brick:Destroy()" but it just said error. How would I type it into the function without changing the name of it?
COMMUNITY QUESTION
How would I use type a name with spaces in a function?
1 answer
You can use game.Workspace["Evil Brick"]:Destroy()
You can find more information by looking up how tables work
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
You could also use :FindFirstChild("Evil Brick") or :WaitForChild("Evil Brick")