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

Is there a way to check if character is moving backwards?

I think it would be checked with the Vecotr3 of HumanoidRootPart etc. but I'm not sure?

1 answer

✓ Accepted answer

Well you can check if hes pressing the S key or the DownArrow. But im not sure if you mean like hes looking East but going torwards West.

this has to be in a localscript ofc

game:GetService("UserInputService").InputBegan:connect(function(input)
	if input.KeyCode == Enum.KeyCode.S then
	       print("went backwards")
	end
end)

2 comments

0

Thanks

0

Np!

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