I have these two scripts and the first once seems to work fine but the second one doesn’t work for some reason.
Fading Script on humanoid death
local player = game.Players.LocalPlayer
local FD = player:WaitForChild("PlayerGui"):WaitForChild("TipsAndInterface").FadingDeath
local char = player.Character or player.CharacterAdded:Wait()
local hum = char:WaitForChild('Humanoid')
hum.Died:Connect(function()
wait(.7)
for i = 1,100 do
FD.BackgroundTransparency -= 0.02
wait(.001)
end
end)
Unfading Script on characteradded
player.CharacterAdded:Connect(function()
for i = 1,100 do
FD.BackgroundTransparency += 0.05
wait(.001)
end
end)