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

Plugins, Child, and Parent??

Asked by 8 years ago

I am aware that scripting functions games, gives it properties. What I am confused about is child and parent. What is that? I cant pin point on explorer what child is or parent? And do I have to download plugins to become a good builder? Like animations, etc.

3 answers

Log in to vote
1
Answered by 8 years ago

a Child is the Descendant of an Instance, and a Parent is the Ancestor of an Instance.

Think of it like this: In the Workspace theres a Terrain Instance, the Workspace is the Parent and the Terrain is the Child.

Plugins are used for making most things easier to do, they aren't required but can help alot.

Some Plugins can help with building a road, or maybe a building. Some Plugins even help with making GUIs!

0
Thanks. You're a legend. iiLuqman 0 — 8y
0
No problem. Always happy to help :) jjoseph196 5 — 8y
Ad
Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

What is a Child, and what is a Parent?

Any child needs a parent. A child is an object, or Instance, inside of a Service/Instance. So it's something Inside of something. If you look at this, you'll so a part in Workspace. So part is a child of workspace, and workspace is a parent of the part. If we insert a script into the part, and the script reads this,

print(script.Parent.Parent.Name)
script is a pre-set variable in all scripts that pertains to the script the code is inside. The script's parent is the part, and the part's parent is Workspace

The output will be,

Workspace

Descendants

Descendants are like grand children, or great grand children, ect. They're not directly a child of an object, but they're still inside the object. For example, if you look at this, you'll see that the part is in workspace, but it's in a folder. This means part is a Descendant of workspace.

I hope that helps you a little.

Good Luck!

If I helped, please don't forget to accept my answer.
Log in to vote
0
Answered by 8 years ago
Edited 8 years ago

Parent is basically the parent of a block, script etc. For example you could do:

script.Parent.Parent.Parent

what that will do is it will go out of the script to its 3rd parent or the 3rd largest thing that its in. Child is basically the child or thing thats inside the part etc. heres an example

game.Workspace.Baseplate:FindFirstChild("Part")

Plugins are basically extra models that can help do a lot of things, tho they are hard to make they can do some pretty cool stuff and are free to use! hopefully this helped you!

Answer this question