I am making a gun and I need it to make it FE. Inorder to do that, I must do :GetMouse() from the server. How do I do this?
If you want to make a gun for FE then you are probably using Remote Events and through the remote event fireserver(Mouse.Hit) on a local script and then in the serverscript the first parameter is always a player so it would look like
Local Side
1 | Remote:FireServer(Mouse.Hit) |
Server Side
1 | Remote.OnServerEvent:Connect( function (player,Mouse) |
2 | print (Mouse.Position) -- You got your mouse |
3 |
4 |
5 | end ) |