Lua error on Poltergeist

I get this error and then get kicked, whenever someone fires a shot.


[ERROR] gamemodes/poltergeist/entities/entities/prop_spawner/init.lua:37: bad argument #1 to 'AddAngleVelocity' (Vector expected, got userdata)
  1. AddAngleVelocity - [C]:-1
   2. SpawnProp - gamemodes/poltergeist/entities/entities/prop_spawner/init.lua:37
    3. unknown - gamemodes/poltergeist/entities/entities/prop_spawner/init.lua:23

Here’s the .lua:



AddCSLuaFile( "shared.lua" )
include( "shared.lua" )

ENT.RespawnTime = 3

function ENT:Initialize()

end

function ENT:KeyValue( key, value )

	if key == "frequency" then
		self.RespawnTime = math.Clamp( tonumber( value ), 1, 60 )
	end
	
end

function ENT:Think()
	
	if ( self.Timer or 0 ) < CurTime() then
		self.Timer = CurTime() + self.RespawnTime
		self:SpawnProp()
	end	
	
end

function ENT:SpawnProp()

	if table.Count( ents.FindByClass("prop_phys*") ) > 100 then return end
	
	local prop = self.Entity:CreateProp( self:GetPos(), self:GetAngles(), table.Random( GAMEMODE.PropModels ) )
	
	local phys = prop:GetPhysicsObject()
	
	if phys and phys:IsValid() then
		phys:AddAngleVelocity( ( VectorRand() * 200 ):Angle() )
	end
	
end

function ENT:CreateProp( pos, ang, model )

	local prop = ents.Create( "prop_physics" )
	prop:SetPos( pos )
	prop:SetAngles( ang )
	prop:SetModel( model )
	prop:Spawn()
	
	return prop
	
end

function ENT:GetFrequency()
	return self.RespawnTime 
end

Thank you in advance and merry christmas.

phys:AddAngleVelocity takes three arguments, what is :Angle()?

Should I erase that part?