So am working on a Sinking Ship Simulator and I want to make my scripts more efficient instead of having tons of bricks under the unanchored ship model that have this script in them:
wait (195) script.Parent:Remove()
What would be a more efficient script that would move the ship without needing this script or bricks under the ship?
A good solution would be to put all the bricks you want to remove in a model and call the Destroy
method on that model.
You'd end up with mostly the same script, though since you don't need to use the model or parts again you should use Destroy
instead of Remove
wait(195) script.Parent:Destroy()
That would eliminate having to put multiple scripts in every part.