You still have an issue here in terms of command senders. What would happen if you sent this command via console? (IE, bound `*:/setwalkspeed $player $speed = set_pwalkspeed($player, $speed)` and called it from console? Same applies for `set_pwalkspeed($speed)`)