Slower Going Backwards?

Making a gamemode and I want to make the player go slower when they walk backwards, does anyone know how to do that?

Since no one replied I made this for you:


hook.Add( "StartCommand", "LimitSpeed", function( ply, cmd )
	if cmd:GetForwardMove() < 0 then
		cmd:SetForwardMove( -60 )
	end
end )

This is to be run in a shared file.

-snip- misread what was happening.

It only slows them if they’re going backwards. When they stop going backwards, they stop getting slowed. You should also add a few conditions. Checking move type, for one.