Engine error: The current thread cannot require '...' (lacking capability unknown) -> occurs when a module returns a function with a TweenInfo

A user playing one of the games I’m working on has this unusual error on their MacOS that has appeared out of nowhere, even though no updates were added to the codebase recently:

This bug appears to be consistent as it always triggers for them whenever joining the game.

The error is relating to a require that loads a module that only returns a TweenInfo in function like so:
I’m not too sure why it’s breaking on a specific Mac device, but as far

return function(root, visible)
	return TweenInfo.new(
		if visible then .15 else .21, 
		Enum.EasingStyle.Cubic,
		Enum.EasingDirection[if visible then "Out" else "In"]
	)
end

Here’s an image of the analytics catching this bug recently:

Based on some recent searches, it appears this error has been somewhat recurring recently:

Game Link:

5 Likes

Thank you for your report, but unfortunately, we cannot reproduce this issue.

I see that there are some likes of this topic by other developers.
If we can get more examples of the issue reported by them as well, it will be easier for us to find the problem.

We can’t repro this bug, so we’re going to assume the issue is no longer occurring.

The two similar issues that are linked were fixed.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.