so i have already asked for that but i explained it the wrong way. so my game is having a lag and im asking whats the best way to defeat the lag? here are some pictures of the lag:
http://prntscr.com/r48ajs
http://prntscr.com/r48avm
http://prntscr.com/r48b68
i have added a button that clears all ores but it doesnt really fix the glitch.
Any help will be appreciated
You're using a ton of parts there. Not using as many is the simplest answer as far as alleviating lag.
You need to be cleaning up the parts on a timeout, meaning a set amount of time the part can be alive for, after this time you delete the part. You can easily achieve that with delay
-- in your part spawning code local part = Instance.new('Part') part.CFrame = dropper.CFrame delay(5, function() part:Destroy() end)
Some of the lag will be created by the physics calculations on the parts. You can help the server out by calling Part:SetNetworkOwnershipAuto()
Closed as Not Constructive by Fragmentation123, Filipalla, User#23252, killerbrenden, and Ziffixture
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?