I'm making an FPS and you can sprint backwards which is a problem so I'm trying to make it so you can't sprint backwards, how would I do this?
I tried using cframes and lookvectors but it doesn't seem to work as none of the axis' return what i need.
local movedir = CFrame.new(last_p,cur_p).lookVector-hrp.CFrame.lookVector
print(movedir.unit.Y)
X just returns random gibberish when you are moving Y seems to return something that has to do with the Y velocity not the Y axis in rotation Z also just seems to return random gibberish when you are moving
Any help?

1 comment
I never knew that dot was a thing, thanks for informing me!