Does FindFirstChild
comes only with an " if statement "
What do you mean
Like does it only check if there’s an instance inside a specific service?
e.g: if workspace:FindFirstChild("Part") then
In your example, the code would progress with the if statement if anything named “Part” exists, directly under Workspace.
FindFirstChild:
- Returns the instance if it finds anything
- Returns nil if it doesn’t
Is that all what it does?
[letmepostpls]
no it doesn’t
instance:FindFirstChild(“name”)
gives you the same thing as instance.name
unlike instance.name, script doesn’t error if instance.name doesn’t exist if you use :FindFirstChild. instead it returns nil
Well, yes, it does what the name suggests. What would you want more?
Nothing lol.
I just wanted to know all its functions.
Also thanks for answering!
I believe, You can also use recursive
Aha I get it.
Thanks for answering!
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.