You would need to make use of CharacterMesh objects for each individual body part (left arm, left leg, torso, etc.) and parent them to the player's Character.
Here's how you can do it through a normal server-script:
game.Players.PlayerAdded:connect(function(player)
player.CanLoadCharacterAppearance = false
player.CharacterAdded:connect(function(character)
wait(0.5)
local leftArm = Instance.new("CharacterMesh", character)
leftArm.BodyPart = "LeftArm"
leftArm.MeshId = 343575282
leftArm.OverlayTextureId = 343563402
local rightArm = Instance.new("CharacterMesh", character)
rightArm.BodyPart = "RightArm"
rightArm.MeshId = 343575392
rightArm.OverlayTextureId = 343563402
local leftLeg = Instance.new("CharacterMesh", character)
leftLeg.BodyPart = "LeftLeg"
leftLeg .MeshId = 343575129
leftLeg .OverlayTextureId = 343563402
local rightLeg = Instance.new("CharacterMesh", character)
rightLeg.BodyPart = "RightLeg"
rightLeg .MeshId = 343574993
rightLeg .OverlayTextureId = 343563402
local torso = Instance.new("CharacterMesh", character)
torso.BodyPart = "Torso"
torso.MeshId = 343572790
torso.OverlayTextureId = 343563402
end)
end)
I've gone through the trouble of finding the MeshIds and OverlayTextureIds of each body part for you, but if you want to do this for another package, you would have to find them yourself (by searching for the package in free models and looking through the model and its CharacterMesh objects). I'm assuming you know how to add/remove players' hats, so I'll let you do that part.
Hope this helps! if it does, don't forget to click "Accept Answer" and +1 my Rep!
1 comment
I've found this url, "https://www.roblox.com/Game/GetAssetIdsForPackageId?packageId = 343617819" which could help. How would i match the given id's to the needed part?