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

Why won't my script work?

2 answers

        local findchild= hum1:findFirstChild("Humanoid")
        local hum=nil
        local dist=100
for i= 1 ,#litx do
        hum1=litx[i]
        if (hum1.className == "Model" and findchild) then
                local temp = hum1:findFirstChild("Torso")
                local human = hum1:findFirstChild("Humanoid")

Change that to

        local findchild= hum1:FindFirstChild("Humanoid")
        local hum=nil
        local dist=100
for i= 1 ,#litx do
        hum1=litx[i]
        if (hum1.className == "Model" and findchild) then
                local temp = hum1:FindFirstChild("Torso")
                local human = hum1:FindFirstChild("Humanoid")

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