I have a module that checks if a descendant is a character. Very simple, but for some odd reason it doesn’t work.
I’ve tried separating the Humanoid. It detects if the descendant is a model but it still fails to find a humanoid. Even with FindFirstChildOfClass.
local function checkIfCharacter(descendant)
if descendant:IsA("Model") and descendant:FindFirstChild("Humanoid") then
-- Character
print(descendant)
end
end
workspace.DescendantAdded:Connect(checkIfCharacter)
Replication time. Just because the client has replicated the character model, does not yet guarantee that it has replicated its descendants. You get away with it on the server, because this latency does not exist, and so the character is typically prepared by the time the connected function is invoked.