You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
any time i destroy any script, it causes a huge lag spike. and i have no idea why. -
What is the issue? Include screenshots / videos if possible!
in microProfiler, “write marshalled” seems to cause the lag spike. I searched up what it is, and it says “Converting an object in memory into a format that can be written.”
im not sure why it is taking so long tho since whether the script is long or just completely empty, enabled or not, lag spike occurs regardless. -
What solutions have you tried so far? Did you look for solutions on the Creator Hub?
i just couldnt find any alternatives. since, how could you even destroy object without Destroy()?
i tried object.parent=nil but also didnt work.
object.parent=game.ServerStorage kinda works but not an ultimate solution since the object is still present in the game, and it would cause lag if theres too many.
i think its some kind of bug, since theres some simmilar posts in bug report topic. im looking for ways to bypass this wonky bug.
PS: cmon 0 comments? is this just unfixable? just lemme know.