Problem with script!

I made this script for my server that should remove all weapons on the map when the new round starts, but it doesnt work.
I placed it in lua/autorun/server/weaponremove.lua. Does anyone know how to fix it?

hook.add( "GWPreGame", "WeaponRemove", function()
    for k,v in pairs(ents.GetAll()) do
        if v:IsWeapon() then v:Remove() return

Once you find the first weapon you return out of the function…

So I just remove the return?


Still doesnt work :confused:

Print all of the entites it is passing, debug it a bit and see why it isn’t working.

Apparently he didn’t relog the map after he made the changes. (Linux)
Should work now.