For custom game scripts like that, a good executor makes testing much easier. I've been using delta for Roblox scripts on Android and it handles most Lua scripts well. If you want to try it, you can grab it here: https://deltaexecuter.com. Just test scripts in a private server first so you don't risk your main account.