How do I check if a RigType is R6 or R15?

How do I check game settings thru scripts? Like checking the game’s avatar choice if it’s set to R6 or R15. I tried to check the player’s humanoid rigtype and when I put this script into a localscript (in StarterCharacterScripts)…

local character = script.Parent
local humanoid = character:FindFirstChild("Humanoid")
if not character or not humanoid then return end

task.wait(3) if humanoid.RigType == "R15" then
    print("Character's humanoid rigtype is R15")
end

if humanoid.RigType == "R6" then
    print("Character's humanoid rigtype is R6")
end

…it printed out “R6” although it was set to R15 in the game settings

Is it possible to do this?

1 Like
local humanoid = character:FindFirstChild("Humanoid")
if not character or not humanoid then
    return
end

task.wait(3)

if humanoid.RigType.Value == 0 then
    print("Character's humanoid rigtype is R6")
else
    print("Character's humanoid rigtype is R15")
end

Oh thank you! But this isn’t what I was looking for… :sweat_smile:

r15’s torso types consists of upper and lower torsos
r6 only consists of “torso”
use those to check what rig type the game is using

local character = script.Parent
local humanoid = character:FindFirstChild("Humanoid")
if not character or not humanoid then return end

task.wait(3) if character:FindFirstChild("UpperTorso") then
    print("Character's humanoid rigtype is R15")
else
    print("Character's humanoid rigtype is R6")
end
3 Likes

I’m pretty sure you can only read game settings from a plugin. But sadly I can’t seem to find anything related to RigType in GlobalSettings.

You could perhaps check if a player’s RigType is R6 while their character isn’t?

Oh thank you! I was trying to look for this cuz I’m making a ragdoll system haha