Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How to get mouse in server script service?

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?

1 comment

0

You... just can't. Mouse is only gotten from the LocalPlayer

1 answer

This discussion is preserved as it was. New answers, comments, and votes are closed.