Does FindFirstChildOfClass() mean finding something that is in a class like how :IsA() does?
Yes, but it acts a little differently. So, you could do
game.Workspace.hiimgoodpack:FindFirstChildOfClass('Humanoid')
to get the humanoid, even if the humanoid is renamed. :IsA needs the current object like
print(tostring(game.Workspace.hiimgoodpack:FindFirstChildOfClass('Humanoid'):IsA('Humanoid')))
:IsA checks if a item is a class name, and has some bonuses. Instead of writing a table of all the GUI objects, you could just do
print(tostring(ScreenGui:IsA('GuiObject')))
Hope this helps!
Yes it does. For example:
game.Players.PlayerAdded:Connect(function(Player) player.CharacterAdded:Connect(function(Character) if Character:FindFirstChildOfClass("Humanoid") then --it's like IsA(), yes. print("Found humanoid!") end end) end)
Please accept my answer if this helped!