#Can't set up character's appearance

1 messages · Page 1 of 1 (latest)

sleek void
#
Players.PlayerAdded:Connect(function(plr)
    
    plr.CharacterAdded:Connect(function(char)
        
        spawn(function()
            
            repeat task.wait() until Profiles[plr] ~= nil -- ProfileStore
            
            local current_weapon = Profiles[plr].Data.Weapon.CurrentWeapon
            
            local weapon_models = ReplicatedStorage.Weapons:FindFirstChild(current_weapon).Models.WeaponModels    
            
            for _, model : Model in pairs(weapon_models:GetChildren()) do
                local m = model:Clone()
                m.Parent = char
                
                local part0 = model.Motor6D.part0.Value -- String value that store the limb's name
                local limb = char:FindFirstChild(part0)
                
                m.Motor6D.Part0 = limb
                
            end
            
        end)
        
    end)
    
end)

I have this code block in my game to set up the character appearance(weapons) when they join the game but it doesnt work as intended. When i try to print m.Parent it does print the character model, but i dont see the model inside my character 😔

fast edge
#

cuz it's seems to be like this

dim valve
sleek void
#

i did it myself

#

just included comments to make it easier to read

dim valve
sleek void
#

no

#

no error at all

#

i tried print the model and it's parent

#

no error either

#

it did print the player character and the model

#

but i cant see the model

#

anhwhere