rps script credits to @brittlewind