Hello! I am making a script where it will find one humanoid across workspace however I can’t find a way to make this work. I feel like this is a pretty easy thing to script but, I can’t figure it out. The closest code I could make is this:
for i,v in pairs(workspace:GetDescendants()) do
if v:FindFirstChildOfClass("Humanoid") then
if v:FindFirstChild("Head") then
script.Parent.ViewCharacter.Value = v.Name
end
end
end
Which would find the first humanoid for some reason, Can someone help me?