-- We set our speeds on the server, don't let the client choose

local speeds = {
	run = 24,
	walk = 16
}

character.speed = function(player, payload)
	local humanoid = Util.getHumanoid(player)
	
	if not humanoid or not payload or not speeds[payload.speed] then
		return
	end
	
	humanoid.WalkSpeed = speeds[payload.speed]
end

return character
