My current script has itself invoking a RemoteFunction in the ReplicatedServer. A LocalScript then watching the RemoteFunction will use "GetMouse", using the "player" variable that is in the invoke. However, it says that "plr" is a nil value. Can somebody please help?
In the Script:
function gitMouse(plr) -- This is defined earlier as the player
local remoteGetMouse = game.ReplicatedStorage:WaitForChild("GetMouse")
local mouse = remoteGetMouse:InvokeClient(plr)
return mouse
end
In the LocalScript (Which is the receiver of the Invoke)
function remoteGetMouse.OnClientInvoke(plr)
return plr:GetMouse()
end
