When ever I try to spawn my entity via a gun, it says
entities/firecan/cl_init.lua:6: function arguments expected near ‘end’
Folder = entities/firecan
Couldn’t register Scripted Entity firecan - the Type field is empty!
Here is the code to the entity
Well I can see your cleanup.Add and undo.AddEntity lines have the wrong name for the fire can variable, but obviously it’s failing to even create the entity. What happens when you try to do the secondary attack, does it give you an error or simply do nothing?