Changing movement speed when entity is used?

I’m making a custom drug for my growing weed plant i made yesterday so when someone grows the plant they press E and can get this drug the drug will give the player stat boosts for example 150 health a smaller amount of gravity and a little extra moment speed i have the gravity and health part down i just need to add the movment part.

Could someone give me a hand with this here is what i have currently.


	--increase health
	if( math.random(999999,99999) == 0 )then
		activator:Ignite(9999999,999999)
	else
		local health = activator:Health()
		if( health * 3/2 < 500 )then
			activator:SetHealth( math.floor(health + 5) )
		else
			activator:SetHealth( health + 5 )
		end
		activator:SetGravity(0.2);
		
	end
end

Then i want to make this only last for 120 seconds but when i used this


ENT.LASTINGEFFECT = 60;

Nothing happens i just kept the health and gravity the entire time. So if anyone can help me with these problems that would be great!

Use timers:
[lua]

else
local health = activator:Health()
if( health * 3/2 < 500 )then
activator:SetHealth( math.floor(health + 5) )
else
activator:SetHealth( health + 5 )
end
activator:SetGravity(0.2);
– Timers to disable:
timer.Simple(120, function()
if activator == nil then return end
activator:SetGravity(0.6)
actovator:SetHealth(100)
end)
end
[/lua]