How to make everybody render same motionblur?

How to make it so that a function renders motionblur to everybody for 10 seconds?

current (broken) code:



function Func()
	timer.Simple(10 ,Normall,self)
	Col = 1
end

function Normall()
	Col = 0
end

 if(Col==1) then
	local function Colori()
	 
		local tab = {}
		tab[ "$pp_colour_addr" ] = 250
		tab[ "$pp_colour_addg" ] = 0
		tab[ "$pp_colour_addb" ] = 0
		tab[ "$pp_colour_brightness" ] = -0.05
		tab[ "$pp_colour_contrast" ] = 0.98
		tab[ "$pp_colour_colour" ] = 0.3
		tab[ "$pp_colour_mulr" ] = 0
		tab[ "$pp_colour_mulg" ] = 0
		tab[ "$pp_colour_mulb" ] = 1 
	 
		DrawColorModify( tab )
	end
	hook.Add( "RenderScreenspaceEffects", "RenderColorModifyxx", Colori )
end

if(Col==1) then
	local function Bluri()
		DrawMotionBlur( 0.15, 0.99, 0)
	end
	hook.Add( "RenderScreenspaceEffects", "RenderColorModifyxxx", Bluri )
end


idk what you’re trying to do in the code compared to your question so I just followed your question

[lua]
function DrawBlurFor10Seconds()
hook.Add( “RenderScreenspaceEffects”, “DrawBlur”, function()
DrawMotionBlur( 0.15, 0.99, 0)
end)
timer.Simple(10, hook.Remove, “RenderScreenspaceEffects”, “DrawBlur”)
end
[/lua]