If I were to store a tween to a variable, using tweenservice:Create, and then setting the variable that holds that tween to nil, would the tween that just was created still be stored somewhere and taking up memory or worsening the performance?
If not, would it be better to use one script to create a new tween each time a door is opened, or create all the tweens in the doors in the beginning and using them?
The tween will only be stored as long as you have a reference to it, if you had a local variable underneath a function, loop, if statement, etc. those are not global to the entire script and will allow the tween to be garbage collected since there is no reference to it after the "end" is executed