I am making a prop launcher swep, how do i make the props launched disappear after a certain amount of time.

I am making a prop launcher swep for my friends, but how do i make the props disappear after a certain amount of time, cause i don’t want it to flood the server. If i placed this in the wrong section move it, srry im new here

When you fire, create a timer that removes that entity after a specified amount of time.

Can you type in the script example for the timer for me? I never learned how to do that before.


timer.Simple( time, function() if ( ent:IsValid() ) then ent:Remove() end end )