Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

FindFirstDescendant is not enabled?

This happens whenever I try to use the FindFirstDescendant function

Is there a way to "enable" it?

6 comments

0

it cant be disabled, does the output show any error ?

0

yes'

0

it shows

0

FindFirstDescendant is not enabled

0

from the line in which i use FindFirstDescendant

0

wait never mind ifoudn the asnwer

3 answers

✓ Accepted answer
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()

local Part = nil

local Descendants = Part:GetDescendants()

2 comments

0

this doesnt do anything

0

Change the path to the part first.

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

This is an alternative.

This discussion is preserved as it was. New answers, comments, and votes are closed.