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 😔