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

getting mouse from server?

local char = script.Parent
local plr = game.Players:GetPlayerFromCharacter(char)
local mouse = plr:GetMouse()

can you not get mouse this way?

it says mouse is nil

in a reg script in char

1 answer

Don't

Regarding input, players expect instant feedback. Doing stuff on the server is a sure-fire way to make stuff feel laggy, which frustrates players, and in turn ruins the game experience. If you must use the info from the Mouse, send the related properties to the server when you need to.

2 comments

0

How do I play sounds with fe enabled when mouse.Button1Down then? sounds can only be called for everyone from a regular script.

0

RemoteEvent. Tell the server that you clicked.

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