Right now I got working code to reparent these objects to workspace. However, I want to make it run faster as it runs too slow to be practical for my game right now
while wait(30) do
for i, v in pairs(game.ServerStorage.TempDestructed:GetChildren()) do
v.Parent = game.Workspace.Model
-- v.Anchored = true
end
end
Speed of destruction:
vs speed of regen:
I understand that for most applications this would be a perfectly fine speed but is there any way to make this run even faster?
Seems fast already… but you could always regen it transparent and noncollide about 10 seconds earlier, then all you would need to do is make it visible and collide true, this will save the time of parenting to the workspace step.
I would but mouse filtering is parent dependent meaning you would be just as inefficent doing this anyways. I got something working however you get ghost collisions when trying to aim. I tried moving parts 50k out then teleporting them back but it crashes the game too. kinda outa ideas
The problem of parenting it to ServerStorage is that the client basically doesn’t have access to it anymore (you can think about it like it’s being destroyed). Reparenting it would just make the client have to redownload all the data again. If you want faster reparenting, parent it to replicated storage instead.