I try using this:
local p = game.Players:GetPlayerFromCharacter(script.Parent.Parent) local m = p:GetMouse()
The best way to do that is to use a local script.
Have a local script in starter pack or starter Gui with the following code:
local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse()
You can then use Mouse to get properties like Hit
.
There are other ways to do this but this is one of the simpler ways.