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

How would I use FindFirstChild to see if an item has a certain classname?

How would I do FindFirstChild to see if a bool value is there, the bool value won't be named bool value. Also, I know this isn't the correct code, it's just part of my script. Isn't there a way to see classnames of items? If there is, how do I use this in FindFirstChild?

for i, v in pairs(game.Players:GetPlayers()) do
        if v:FindFirstChild(RightHere) then

1 answer

✓ Accepted answer

FindFirstChildOfClass("Class name here")

5 comments

0

or if you just want to check for a class name of something you already have you can do thing:IsA("Class Name")

1

or .ClassName == ""

0

he wants to find a child's classname in this case and that requires what i said

0

It works with all the methods stated in the comment including your answer.

0

yes but hes not asking for every method, hes asking for what i gave

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