Game crash from mobile

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?

If anyone can help me it is really appreciated.

The game: Avatar Editor [Catalog] - Roblox

Also tell me if this is the wrong topic category

1 Like

So about the topic, I don’t know

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.

1 Like

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.

1 Like

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)

1 Like

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)


I will try to optimize it

1 Like

Im playing now, and only crashed(for me) when I enter the game

consider that it has not yet been updated, however at the start of the game that script has too high activity

1 Like

so… while I’m chatting in game, the game crashed and I can’t send messages now (and the plr that I’m chatting has the same problem the same time)

well, i very dont know… ill try to optimize the stands thing for now… when you respawn you should have more lag btw

EDIT:
also, if the script was decompiled with synaspe could that be the problem?
(if you’re wondering, yes it was decompiled with synapse)

1 Like

its probably a script execution timeout

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?

its like you execute alot of scripts

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)

you use
while true do?

if yes then change all while loops to

while wait() do

yes, I realized just now that the wait was not present, honestly I don’t know how it didn’t crash from the pc

EDIT:
oh yes, now it’s much better … well … it takes more time but now the activity of the scripts is from 2,000% to 4,000%

also. do I have to worry about scripts with high rates but very low activity?

you dont need to worry i guess?

1 Like

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

EDIT:
got it
image