Recently while I’m scripting I’ve been wanting to be able to summon Children in a script instead of naming out every child of a block. For example, if I want to make something transparent, I could type:
Are you trying to get the part you click on to disappear, or make it so that clicking on any part in the bookcase will make the entire thing disappear?
When I click the book, no errors appear.
This is all in a normal script.
The script is located inside Parttt aka the book which has the ClickDetector in it.
Whoops, looks like I missed something when reading your script over. I’m pretty sure it is erroring, because you’re missing an end. You need an end at the end of the for loop, and another one at the end of the function, and you only have one. For me, this errors like this: 20:51:32.533 - Workspace.ThisBookCase.Parttt.Script:9: Expected 'end' (to close 'function' at line 1), got <eof>
If it isn’t erroring for you, that’s really weird. Is the script disabled by any chance?
Edit: You also refer to the model as both ThisBookcase (in the connection) and ThisBookCase, (when using :GetChildren()) and I’m pretty sure that would error as well.