Plugin threads don't disconnect on reload

plugin.Unloading:Connect(function()
	for object:Instance, values in Garbage do
		RidOf(object)
	end
	t:Disconnect()
	print("disconnected")
end)

literally prints disconnected but does not disconnect the renderstepped thread (t)
there are no loops inside of the renderstepped loop it literally just doesn’t stop which causes old versions to interfere with the current one. I have to re open my game to fix this…

I have tried coroutines and tasks. The thread still continues after being disconnected.

Calling plugin:Destroy() will halt all threads.

2 Likes

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