Editing DurgzMod, need assistance.

I’m trying to make where durgzmod will stop the cocaine and weed effect after the screen effect fades too. Is this possible? (tl;dr code below doesn’t work.)



--set speed back to normal once your high is over 
local function ResetSpeed()
	for id,pl in pairs(player.GetAll())do
	
		if pl:GetNetworkedFloat("durgz_cocaine_high_end") < CurTime() && pl:GetNetworkedFloat("durgz_cocaine_high_end") + 0.5 > CurTime() && ( pl:GetNetworkedFloat( "20" ) && pl:GetNetworkedFloat("20") != 0)then
			pl:SetWalkSpeed(pl:GetNetworkedFloat( "13" ))
			pl:SetRunSpeed(pl:GetNetworkedFloat( "20" ))
		end
		
	end
end
hook.Add("Think", "durgz_cocaine_resetspeed", ResetSpeed)



function ENT:SpawnFunction( ply, tr ) 
   
 	if ( !tr.Hit ) then return end 
 	 
 	local SpawnPos = tr.HitPos + tr.HitNormal * 16 
 	 
 	local ent = ents.Create( self.Classname ) 
 		ent:SetPos( SpawnPos ) 
 	ent:Spawn() 
 	ent:Activate() 
 	 
 	return ent 
 	 
 end 



Bump, I really need help guys…

idk lol

You don’t know how to fix it, when you wrote the code? You write shit without testing?..

No. He writes shit without knowing what he is writing.

So no one can help me?..

wow, im looking for the same solution. but people just wanna post the most useless shit…

im playing with the init.lua too. ill let u kno if i get it