My issue:
I have loops inside function that run and depend on a instance however when this instance no longer exists in the game the loops give out an error.
I know that you can use if statements inside the loops to break them when instance no longer exists however I do not wanna repeat if statements for every loop I make.
Is there any known framework/module that keep these loops running for as long as instance exists?
Well if you want to run a loop for as long as an instance exists, you’re going to need to check if it exists.
You can use .Removing or .AncestryChanged to disconnect RunService connections, but generally you shouldn’t be running into issues with checking the .Parent property of instances.
Also, don’t look for frameworks for hyper-specific tasks, they often overcomplicate things and use more resources than really needed.