So my problem is, whenever a player is dying, I want to put something inside the torso, but it’s not cloning and not putting it inside of the player’s torso. However it is printing True and Done but the cloning never happened and it also doesn’t print any errors.
--This is inside a script, so it might seem weird but everything works except the cloning
hum.Died:Connect(function()
if game.ReplicatedStorage.Game.InGame:FindFirstChild(Char.Name) then
game.ReplicatedStorage.Game.InGame:FindFirstChild(Char.Name).Parent = game.ReplicatedStorage.Game.OutGame
end
local inv = game.ReplicatedStorage.Inventories:FindFirstChild(plr.Name)
if inv.AquaAura.Value == true then
print("True")
wait(6)
local clr = game.ReplicatedStorage.Auras.Aqua.Part.Att01:Clone()
clr.Parent = Char:FindFirstChild("Torso", true)
print("Done")
elseif inv.DbzAura.Value == true then
wait(6)
local clr = game.ReplicatedStorage.Auras.Dbz.Part.Att01:Clone()
clr.Parent = Char:FindFirstChild("Torso", true)
elseif inv.DiscoAura.Value == true then
wait(6)
local clr = game.ReplicatedStorage.Auras.Disco.Part.Att01:Clone()
clr.Parent = Char:FindFirstChild("Torso", true)
elseif inv.MagicAura.Value == true then
wait(6)
local clr = game.ReplicatedStorage.Auras.Magic.Part.Att01:Clone()
clr.Parent = Char:FindFirstChild("Torso", true)
end
end)
Thank you for reading!