how do i make use function repeat its action until i release the use key?

the title speaks for itself

while input.IsKeyDown( key enum here ) do

It can be written really inefficiently so watch out.

thats client side isnt it?

and ENT:Use is serverside

If it’s an entity, ent:SetUseType(CONTINUOUS_USE)

You didn’t specify on what side it’s meant to be ran.

True , thanks LUModder