game:GetService('Players').PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(function(character)
local function cloneCharacter(character)
character.Archivable = true
local cloned = character:Clone()
character.Archivable = false
return cloned
end
if game:GetService('ReplicatedStorage'):FindFirstChild(plr.Name) == nil then
local cloned = cloneCharacter(character)
cloned.Name = plr.Name
cloned.Parent = game.ReplicatedStorage
cloned.HumanoidRootPart.CFrame = workspace.SpawnLocation.CFrame
end
character:WaitForChild('Humanoid').Died:Connect(function()
if plr.TeamName.Value == 'Player' and plr.Revived.Value == false then
local clone = revivePart:Clone()
clone.Parent = game.Workspace:FindFirstChild(chosenMap.Value)
clone.Position = character.HumanoidRootPart.Position
clone.Name = plr.Name
clone.ProximityPrompt.ObjectText = plr.Name
end
plr.TeamName.Value = 'None'
end)
end)
end)
Basically the title. When I replace the player’s character with the clone, it only clones body colors and scripts and parts, but doesn’t clone accessories. How would I fix that? Thank you!