This script goes inside a TextButton or ImageButton in your GUI (StarterGui).

: Using Enum.RigType to check for R15 can sometimes be unstable.

-- Script inside ServerScriptService

: If you receive a prompt to switch to R15 while already using it, users often "fix" this by toggling their character from and back in the Avatar Customize menu to refresh the rig. Scripting Conflicts : Developers on the Roblox Developer Forum suggest a code fix using TextChatService

: Placing the script in StarterCharacterScripts ensures the fix runs every time you respawn.