local mouse = plr:GetMouse()
local magnitude = (plr.Character.HumanoidRootPart.Position - mouse.Hit.Position).Magnitude
Attempt to index nil with “Hit”
I can’t see any error with this, I have a valid player parameter (this is in a remote event)
Did I do something wrong, or can the mouse really only be gotten on the client? I really don’t want to create a ton of extra steps just to get the mouse position, so is there some other way I can do this if there isn’t an easy solution?