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

new problem, ignore the answered mark?

Asked by
theCJarmy7 1293 Moderation Voter
8 years ago
move = game.Workspace.NPC.Humanoid

while true do
move:MoveTo(13, 0.5, -8)
wait()
function MoveToFinished ()
    move:MoveTo(44, 0.5, -21)
    function MoveToFinished()
        move:MoveTo(13, 0.5, -27)
        function MoveToFinished()
            move:MoveTo(-34, 0.5, 55)
            function MoveToFinished()
                move:MoveTo(-1, 0.5, -24)

            end
        end
    end
end
end

it says Unable to cast value to Object

1
You can either make a new question, or reject his current answer by doing it the same way you did accepting it. Async_io 908 — 8y
0
fine, ill make a new question theCJarmy7 1293 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

Ur functions parenthese was i the wrong place

p = game.Workspace.good.Position
move = game.Workspace.NPC.Humanoid

while true do
game.Workspace.NPC.Humanoid:MoveTo(p)
wait()
function MoveToFinished ()
    move:MoveTo(10,0,40)
end
end

0
what? the wiki said they go around the function... thank you theCJarmy7 1293 — 8y
0
also, new issue, i editted the question theCJarmy7 1293 — 8y
Ad

Answer this question