Yeah, I used that. But I think I went wrong. I used Camera.CFrame.LookVector:Dot(Humanoid.MoveDirection), and ControlModule:GetMoveVector(), but it doesn’t work as I expected.
-- Returns the player's walking state.
local function PlayerWalkingState(MoveDirection: Vector3, CameraCFrame: CFrame, Humanoid: Humanoid): string
if MoveDirection.Magnitude <= 0 or Humanoid:GetState() ~= Enum.HumanoidStateType.Running then return "Walk" end
local HumanoidRootPart = Humanoid.RootPart
if not HumanoidRootPart then
return "Walk"
end
local Direction = ControlModule:GetMoveVector()
local LookDirection = Direction.Z
local RightDirection = Direction.X
if RightDirection > 0 then
if LookDirection > 0 then
return "Left"
else
return "Right"
end
elseif RightDirection < 0 then
if LookDirection > 0 then
return "Right"
else
return "Left"
end
else
return "Walk"
end
end
In PlayerModule.ControlModule.Keyboard I found where movement is handled, so you could probably see about adding in a way to control the Humanoid WalkSpeed using the action functions.
To get the modules, just play test and go into your PlayerScripts and it’ll be in there. Copy them, end the test, and paste them into StarterPlayerScripts and they’ll override.