I am trying to make it get all of the Characters that have a Humanoid. But when I do it doesn’t get the player character. When I check the printed table of the descendants listed I didn’t see my name(PurpNinjalol) on it.
-- Server Sided
local assets = workspace:GetDescendants()
for i = 1,#assets do
if assets[i]:IsA("Model") then
local Humanoid = assets[i]:FindFirstChildWhichIsA("Humanoid")
if Humanoid then
print("Humanoid found in:",assets[i])
end
end
end
-- Printed Values:
15:04:24.742 Humanoid found in: R15 - Server - FollowPlayer:6
15:04:24.744 Humanoid found in: Rocko - Server - FollowPlayer:6
-- It doesn't print out "Humanoid found in: PurpNinjalol"
are you sure you placed the wait above the second line like this?
-- Server Sided
task.wait(10)
local assets = workspace:GetDescendants()
for i = 1,#assets do
if assets[i]:IsA("Model") then
local Humanoid = assets[i]:FindFirstChildWhichIsA("Humanoid")
if Humanoid then
print("Humanoid found in:",assets[i])
end
end
end```