Resolved Instance Leaking in Studio [UserInputService]

Seems like something was wrong with the garbage collector. I editted my studio settings and now it removes the instances when I try to save/publish

[spoiler]While using Studio, I noticed my Instance count was increasing even though I wasn’t really adding any objects.
After fiddling around a bit, I realized that it has something to do with [tt]UserInputService[/tt] and plugins.

I simplified the source to this code:

[code]local UserInputService = game:GetService(“UserInputService”)

UserInputService.InputBegan:connect(function(InputObject) end)[/code]

It seems that the InputObject is being retained after the place is saved and closed. All I noticed is that my Instance count would keep increasing. I suppose I figured that they wouldn’t be Archivable.

Am I doing something wrong or is this unexpected behavior? Also, how would one clean out all the old InputObjects?[/spoiler]

InputObjects are initially parented to nil, so they won’t permanently increase the instance count. I put your exact code in a plugin and the instance count did not continually increase like you claimed. You need more precise reproduction steps.