I've kinda hit a road block and could use some help. im trying to recreate Hexs ban effect using ahref ulx rocket as a bace but i cant get any entities to spawn any help would be great, I'll attach the files that I'm using. i have looked at the wiki but the script is not working.
timer.Simple(.1, function()
local ent = ents.Create("prop_physics")
ent:SetPos(ply:GetPos() + Vector(0,0,-25))
ent:SetModel("models/props_lab/monitor02.mdl")
ent:SetAngles(Angle(randomang1, 0, 0))
ent:Spawn()
ent:Ignite(50.100)
local entphys = ent:GetPhysicsObject()
entphys:SetVelocity(Vector(math.random(-50,130),math.random(-50,140),math.random(100,250)))
local trail = util.SpriteTrail(ent, 3, Color(0,green,blue), false, 32, 0, 2.5, 1/(15+1)*0.5, "trails/physbeam.vmt")
end)