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
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
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.
This discussion is preserved as it was. New answers, comments, and votes are closed.
2 comments
How do I play sounds with fe enabled when mouse.Button1Down then? sounds can only be called for everyone from a regular script.
RemoteEvent. Tell the server that you clicked.