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

:move function doesn't seem to work ?

Asked by 6 years ago

What I want to do is to have a part which forces the player to go in a certain direction once touched and the player continues to move in that direction regardless of player input. For some reason :move function doesn't respond.

function directionlock(object)
    if object.Parent:FindFirstChild("Humanoid") then
        local h = object.Parent:FindFirstChild("Humanoid")
        h:Move(Vector3.new(0, 1, 0), true)
    end
end


script.Parent.Touched:connect(directionlock)

1 answer

Log in to vote
0
Answered by 6 years ago

The :Move(Position,CameraSetBool) Function have been deprecated since 2012

That is when most of the old games gets broken

0
What's the alternatives? guestnot99 112 — 6y
0
No it is not. It is not deprecated. The wiki doesn't mark it as that. H4X0MSYT 536 — 6y
Ad

Answer this question