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

How to subtract one from the total position of this?


while true do
    wait(1)
    local target = findNearestTorso(script.Parent.HumanoidRootPart.Position)
    if target ~= nil then
        script.Parent.Humanoid:MoveTo(target.Position, target)
		load3:Stop()
		load:Play()
		 script.Parent.Humanoid.MoveToFinished:Wait()
		load:Stop()
		load2:Play()
		load2:Stop()
		load3:Play()
    end

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.

1 answer

✓ Accepted answer

Try Using Vector3.new(-1,-1,-1) The Script Thought The Vector3 Was A Table You Forgot To Add .new

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