I’ve been having troubles with detecting if a player is running or not. I’ve already tried the PlayerBindPress hook, which doesn’t work with +speed. I’ve also tried the KeyPress Hook, which also, does not work with +speed. The only thing that I’ve gotten to work, is:
hook.Add("Think", "SPEEDCHECK", function() local ply = LocalPlayer() if(ply:KeyPressed(IN_SPEED))then ply.IsRunning = true else ply.IsRunning = false end end)
This however, does not work properly, because it returns that it’s being pressed and not being pressed at the same time. If this is the only way to do it, how exactly should I use it? I can’t seem to find a good hook to use that in. Thanks!