How can I get both the hit and the local player?
function RemoteFunction.OnServerInvoke(hit)
Sorry I didn't explain myself correctly, I meant I need to get the local player (myself) and the hit and normally I would do:
function RemoteFunction.OnServerInvoke(player)
but since I need also:
function RemoteFunction.OnServerInvoke(hit)
I do not know how to get both of them at once.

1 comment
Oh sorry I haven't explained myself enough, edited the post, thanks for your help though!