Local scripts and Gui

that’s not always the case as you can disable ResetOnSpawn on the screen gui
(also your FindClass function could be replaced simply with location:FindFirstChildWhichIsA(class, true), but that’s not related to this thread)