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
9 years ago
01move = game.Workspace.NPC.Humanoid
02 
03while true do
04move:MoveTo(13, 0.5, -8)
05wait()
06function MoveToFinished ()
07    move:MoveTo(44, 0.5, -21)
08    function MoveToFinished()
09        move:MoveTo(13, 0.5, -27)
10        function MoveToFinished()
11            move:MoveTo(-34, 0.5, 55)
12            function MoveToFinished()
13                move:MoveTo(-1, 0.5, -24)
14 
15            end
16        end
17    end
18end
19end

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 — 9y
0
fine, ill make a new question theCJarmy7 1293 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

Ur functions parenthese was i the wrong place

01p = game.Workspace.good.Position
02move = game.Workspace.NPC.Humanoid
03 
04while true do
05game.Workspace.NPC.Humanoid:MoveTo(p)
06wait()
07function MoveToFinished ()
08    move:MoveTo(10,0,40)
09end
10end
0
what? the wiki said they go around the function... thank you theCJarmy7 1293 — 9y
0
also, new issue, i editted the question theCJarmy7 1293 — 9y
Ad

Answer this question