So in my module script that handles camera movements, I have a function for panning to a part. More specifically, a function that fires a remote to tell each client in a table passed as an argument to pan:
function CameraTools.PanToPart(players: {Player}, part: BasePart)
for i=1,#players do
script.PanToPart:FireClient(players[i], part)
end
return task.wait(defaultPanSpeed)
end
However, the new typechecking doesn’t like this function for some reason:
the module is split into a client and server side, and when i remove the client version of the function (not accessible within this functions scope), the error goes away.