01 | while true do |
02 | wait( 1 ) |
03 | local target = findNearestTorso(script.Parent.HumanoidRootPart.Position) |
04 | if target ~ = nil then |
05 | script.Parent.Humanoid:MoveTo(target.Position, target) |
06 | load 3 :Stop() |
07 | load :Play() |
08 | script.Parent.Humanoid.MoveToFinished:Wait() |
09 | load :Stop() |
10 | load 2 :Play() |
11 | load 2 :Stop() |
12 | load 3 :Play() |
13 | end |
14 |
15 | end |
Basically, when the robot comes to you it just pushes you so the move to never finishes, there for the animations doesn't play, I tried subtracting the values using - vector3(1,1,1) but it usually gave me a table error.
Try Using Vector3.new(-1,-1,-1) The Script Thought The Vector3 Was A Table You Forgot To Add .new