There's no cheat for it, but upgrading your computer does the job.
Freezing in Roblox is nearly always a hardware limit — memory, an ageing graphics card, or too many programs competing for resources. Closing background apps is the free fix; more RAM or a better GPU is the permanent one.