Error code :
SeverScriptService.MainServerScriptService:120: attempt to index local 'mou' ( a nil value )
Code :
game.ReplicatedStorage.Events.RE.OnServerEvent:connect(function(plr) local mou = plr:GetMouse() print(mou.Hit.p) end)
I was just testing some scripts but then errors popped up, im confused, can someone help?
You can't get Mouse from a server sided Script
you would have to get it from a Local Script
and use RemoteEvents / RemoteFunctions to send the mouse data you need to the server.
https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events