Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Quick Access To Specific Group Brick?

Asked by 5 years ago
Edited 5 years ago

I have a quick question! Is there a way to get to a specific parent in a big group without having to type the whole thing?

So, instead of typing,

script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Parent

Or

game.Workspace.Part.Part.Part.Part.Part.Part.Part.Part.Part.Potato

there is just a simple and short command instead? Like, you just use the name of the part or something? Please help, thanks!

0
why would you have 50 parts nested inside each other? User#19524 175 — 5y
0
When you are building a large complex and advance object, such as a car, that require multiple objects and parts. This was just an example script though. Darkcraft10 20 — 5y
0
you can use the second parameter of FindFirstChild to search all descendants User#22604 1 — 5y
0
so like workspace:FindFirstChild("Potato", true) for your second sample User#22604 1 — 5y
0
Thank you, that will be very helpful! Would it be possible to do it though the .Parent command, in the case of if I had multiple of the same named parts? Darkcraft10 20 — 5y

Answer this question