#MoveDirection.Magnitude always = 0 even when moving.

1 messages · Page 1 of 1 (latest)

woven citrus
#

I'm trying to write a movement script for walking/running and it seems that whenever i try to check the players.Humanoid.MoveDirection.Magnitude it equals zero even when they move

Script below.

#

sorry if its a little sphaghettified

pastel arch
#

hello

#

@woven citrus you fixed it yet?

woven citrus
#

nope.

pastel arch
#

local MoveDirection = humanoid.MoveDirection

#

this just sets the movedirection variable to whatever it was when you set it

#

if MoveDirection.Magnitude ~= 0 then

#

if you just do humanoid.MoveDirection.Magnitude it should fix it

#

👍

woven citrus
#

thanks man!