How To Get RigType From Outfit Id?

Hello,

I am making a user check game where I can search up users and get some info on them. I have a feature where you can look at the user’s outfits and spawn them. Problem is, I have no idea how to differentiate from R6 or R15. There’s no devforum posts about this that I have found so far talking about this. Any help will be appreciated.

3 Likes

The Outfit Id has nothing to do with the rig type. You can apply an Outfit Id to both an R6 rig and an R15 rig.

That’s not the problem, I’m getting a humanoid description from an Outfit ID, but I don’t know if the outfit will be r15 or r6…

That’s what I am saying. Look at this code for example:

local outfitId = 1237289137 -- Random Id I typed
workspace.Dummy1.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromOutfitId(outfitId))
workspace.Dummy2.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromOutfitId(outfitId))

I tested this in a new file where Dummy1 is an R15 rig and Dummy2 is an R6 rig. The code can transform both the rigs the same way when getting a humanoid description from the same outfit id.

You don’t get it, I have one humanoid model that is created by the script that decides whether the imported humanoid description is R6 or R15, the only way I found was by UserIds and not by OutfitIds…

Not too sure if this will help but its worth a shot, you could detect the players character type (R15 or R6) like so and then write some other types of checks maybe Sorry also, I haven’t been on the forum in ages so I’m a little rusty:

R15:

if Humanoid.RigType == Enum.HumanoidRigType.R15 then
     -- run some other checks
end

R6:

if Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then
     -- run some other checks
end
1 Like

Create the character rig using CreateHumanoidModelFromUserId, then check their HumanoidRigType property (under Humanoid) and do your checks.

(Unless I missunderstood your post)

Not from UserId, from OutfitId, also creating a humanoid model from humanoid descriptions require a rigtype for its parameter. I know CreateHumanoidModelFromUserId() doesn’t require a rigtype parameter, but I only want to create the humanoid model from a description. Also, there is no CreateHumanoidModelFromOutfitId() method, so its better to just use humanoid descriptions.