Alright, so I’m not 100% sure about this which is why I came here.
Here’s an example of what I mean:
local function Run_Tween()
local tween_object = tween_service:Create(workspace.Baseplate, TweenInfo.new(1, Enum.EasingStyle.Linear), {Transparency = 1})
tween_object:Play()
tween_object.Completed:Connect(function()
print'blah'
end
end
I’m referring to the .Completed
event connection object. I would assume since the tween object itself is not referenced anywhere else in the code, that it would be GC’ed when this function pops off the stack. However, I’m not 100% sure regarding this so I just wanted to confirm my thinking.
Thanks