I'm developing. there is a system of Money and therefore coins that increase your cash in the game. my question is as follows: When I tested the game (published and logged on the roblox server) the moment I took the coin, I could see a lag for the server to respond. (my ping was 222) is there any way to solve this? or could it be through the long scripts?
Change your "Edit Equality Level" to Level 1 in Roblox Studio setting
1.Your game has a large map.
Make chunks loading system or turn on StreamingEnabled
.
2.Too many NPCs.
In this case, if you don't really need Humanoid you can control them with script. Or if you really need Humanoid so turn off HumanoidStateType that is unnecessary.
And control all of NPCs in 1 script
.
3.The script that should not be used.
wait() read more here
spawn(function() use coroutine instead.