Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-3

Why isn't this working?

Asked by 10 years ago

Please make your question title relevant to your question content. It should be a one-sentence summary in question form.
        spawns = mapChosenClone.Spawns:GetChildren()

        for i,v in pairs(game.Players:GetChildren()) do
            name = v.Name
            check = game.Workspace:FindFirstChild(name)
            if check then
                checkHumanoid = check:FindFisrtChild("Humanoid")
                if checkHumanoid then
                    check:MoveTo(spawns[i].Position)
                end
            end
        end

Anyone?

0
WOW, WHAT THE FUCK PEOPLE, WHY DISLIKE CAUSE I ASKED A QUESTION, I MEAN COME ON YOU FUCKING MORONS, GO GET A FUCKING LIFE NinjoOnline 1146 — 10y

2 answers

Log in to vote
1
Answered by 10 years ago

You spelled "First" wrong in the "FindFirstChild" at line 07

Ad
Log in to vote
1
Answered by 10 years ago

You misspelled FindFirstChild, you wrote FindFisrtChild.

Fix that and it should work.

Answer this question