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.
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
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.