Remote event detect mouseHit as player

Im trying to make a skill but for it i will need the player torso and the mouse position, so to send those informations i did

eskill:FireServer(player, mouse.Hit) on the local script that calls the remote event, and…

event.OnServerEvent:Connect(function(player, mouseHit) on the script of the remote event, but idk why it get the mouseHit as the player

When using :FireServer, the player is always sent as the first parameter, so you don’t need to add it.
Try using just

eskill:FireServer(mouse.Hit)
2 Likes

It worked :happy3:.
Thankyou a lot!!!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.