Drixitty
(Kifli)
#1
hi, i have a character customizer in my game, and i’m trying to make it so that the character stays after you die, so here’s what i have attempted:
game.Players.PlayerAdded:Connect(function(player)
local char = player.Character or player.CharacterAdded:Wait()
char:WaitForChild("Humanoid").Died:Connect(function()
local clone = char:Clone()
clone.Parent = game.ReplicatedStorage
end)
player.CharacterAdded:Connect(function(character)
character.Humanoid:ApplyDescription(game.ReplicatedStorage:FindFirstChild(character.Name).Humanoid:GetAppliedDescription())
end)
end)
but i get this error:
Humanoid::ApplyDescription() DataModel was not available
i have searched it up but none of the posts seemed to have helped
4 Likes
icymanred
(gengar)
#2
idk if this will help but before cloning the character put this
char.Archivable = true
3 Likes
Drixitty
(Kifli)
#3
yeah i did that and it does clone
2 Likes
icymanred
(gengar)
#4
player.CharacterAdded:Connect(function(character)
game.Workspace:WaitForChild(character.Name)
character.Humanoid:ApplyDescription(game.ReplicatedStorage:FindFirstChild(character.Name).Humanoid:GetAppliedDescription())
end)
try put that line of code i added and see if it worked, when i tried it seemed to fix the issue
2 Likes
Drixitty
(Kifli)
#5
nope, same error blurred text
2 Likes
icymanred
(gengar)
#6
wdym blurred text? what texts blurred
2 Likes
Drixitty
(Kifli)
#7
theres a minimum character requirement on replies so people usually just put blurred text
2 Likes
icymanred
(gengar)
#8
can us end the the full code with the bits i put in it, just so i can see how ur doing it
2 Likes
Drixitty
(Kifli)
#9
ok so this is weird, i broke it down just to this:
game.Players.PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(char)
print(char)
local clone = char:Clone()
clone.Parent = game.ReplicatedStorage.CharStore
end)
end)
and for some reason, i get this error:
it knows what char is but for some reason it says clone is nil???
icymanred
(gengar)
#10
do the archivable thing thats why its not working
Drixitty
(Kifli)
#11
oh yea im so dumb
i made it archivable in another script but that probably doesnt run before this
system
(system)
Closed
#13
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.