Hi, I currently have a game that works correctly on a pc, but on mobile it keeps crashing. i need help figuring out how to fix this, could it be too much information / packets sent by the server? too many client side operations?
But the developer of the game can see if a script is making the game crashes, only press f9 and go to scripts or if you testing in mobile(because is in mobile that crashes) go to Roblox Menu - config - last option, and go to scripts, here you can see if any script is crashing the game.
I have a few tips, if you made tiny details that don’t really matter much such as « wall decorations, tiny details » or anything that the player won’t touch or that’s important. Don’t forget to anchor them.
thanks and sorry for the late reply, how can I define if a script is crashing the game from activity and rate?
EDIT:
There is a script that varies between 1,500 and 3,000 in activity and 140,000 in rate
(btw, only the client crash, not the server, especially when the player is moving with many items equipped on their avatar, that’s what the reporters say)
I checked all the scripts with high activity, and in addition to removing the scripts that moved the leaves of the trees I made sure that these stands only load the first time you enter the game and not every time you respawn, however when you enter the game the activity of the script goes over 90,000% (essentially copies the avatar on the stands)
do you mean that the script uses too much memory and consequently the game stops as it cannot do more operations and times out? or something like this?
well, for each stand it executes a function containing 3 while loops that allows you to copy a scaled avatar on each of them (I didn’t create this code)
This problem is solved (with all the while loops in the game), however the game keeps crashing from the phone when I reset or rarely when I walk (even from the roblox studio emulator)
The activities of the scripts are all low except when the player respawn, I will try to put wait() in long for loops