Dropper Script Optimization

deleted [Content Deleted] … (Can’t)

You will get more help if you put an example of your script together with your question.

2 Likes

Never made a tycoon but here is an idea :

Make a certain amount of parts you get and make that number increase by one. Like for example, if you have one dropper, only allow the player to drop 5, and when the player buys another dropper, they can get another 3 and it keeps going on and on

1 Like

You could try dropping the parts in a local script and have the server automatically account for the parts being dropped. This way you could also have the server run the loop less times, instead of 1.3 seconds, make it a minute (or more) and just multiply the amount of money or whatever that you get from the part going into some sell thing. That should get rid of some server lag. You won’t be able to see the parts of other players, but that’s not critical and ultimately important to optimize. That’s the way I would do it, but if you provided some code I bet people will be able to optimize other parts of it as well.

2 Likes

Alright thanks i’ll probably try that.
And for the code, it’s just a simple loop creating an instance

1 Like

Maybe you can use Debris service instead, of Destroy parts normally heres an example:
game:GetService(“Debris”):AddItem(DroppedPart, 0)

1 Like