Sure root and resourceRoot are just smilair u can use then both but use root more better resourceRoot is giving the resource root element but root give all resource root element any more questions
Dont use player in the function that u trigger server sided use client or source and change the function arguments
function() and not function(player)
and replace player inside the function to client or source
By adding the event handler using getRootElement() this will work for all colshape u should use this
[lua] addEventHandler("onClientColShapeHit", col, onColShapeHit) [\lua]