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

FindFirstDescendant is not enabled?

Asked by 3 years ago

This happens whenever I try to use the FindFirstDescendant function

Is there a way to "enable" it?

0
it cant be disabled, does the output show any error ? djabdou33 40 — 3y
0
yes' R_LabradorRetriever 198 — 3y
0
it shows R_LabradorRetriever 198 — 3y
0
FindFirstDescendant is not enabled R_LabradorRetriever 198 — 3y
View all comments (2 more)
0
from the line in which i use FindFirstDescendant R_LabradorRetriever 198 — 3y
0
wait never mind ifoudn the asnwer R_LabradorRetriever 198 — 3y

3 answers

Log in to vote
1
Answered by
iuclds 720 Moderation Voter
3 years ago
FindFirstChild(string:instanceName, boolean:recursive)

recursive - search through the children of children, and the children of those children, etc. tip: children of children is known as getdescendants()

Ad
Log in to vote
0
Answered by 3 years ago
local Part = nil

local Descendants = Part:GetDescendants()
0
this doesnt do anything iuclds 720 — 3y
0
Change the path to the part first. Bankrovers 226 — 3y
Log in to vote
0
Answered by 3 years ago

lua local object; for index, value in pairs(object:GetDescendants()) do if value.Name == "name" then object = value break end end This is an alternative.

Answer this question