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

:move function doesn't seem to work ?

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

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

That is when most of the old games gets broken

2 comments

0

What's the alternatives?

0

No it is not. It is not deprecated. The wiki doesn't mark it as that.

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