Hello, i'm making an aura script, and when character dies, aura dont change parent to character's hand, i don't know what is wrong. Code:
game.Players.PlayerAdded:Connect(function(player)
local Aura = game.Lighting.Aura1
player.CharacterAdded:Connect(function(Char)
wait(2)
while wait() do
if player.Strength.Value >= 1000 and script.given.Value == false and script.given2.Value == false then
local clonedaura1 = Aura:Clone()
clonedaura1.Parent = Char.RightHand
local clonedaura2 = Aura:Clone()
clonedaura2.Parent = Char.LeftHand
script.given.Value = true
script.given2.Value = true
print("Given")
player.Character:WaitForChild("Humanoid").Died:Connect(function()
wait(5)
clonedaura1.Parent = game.Lighting
clonedaura2.Parent = game.Lighting
print("died")
wait(1)
clonedaura1.Parent = Char.RightHand
clonedaura2.Parent = Char.LeftHand
print("regened")
if player.Strength.Value >= 25000 then
clonedaura1:Destroy()
clonedaura2:Destroy()
end
end)
end
end
end)
end)
