I want a black screen to fade in once the player has died and to fade out once they respawn. I've made a start and it doesn't seem to be appearing.
I have put a ScreenGui in the 'StarterGui' called 'BlackScreen', then a Frame inside the ScreenGui called 'Black' and then a LocalScript inside the Frame with the following:
local black = script.Parent
local humanoid = game.Players.LocalPlayer:FindFirstChild('Humanoid')
while true do
if humanoid.Died() then
for i = 1, 10 do
black.BackgroundTransparency = black.BackgroundTransparency - 0.10
wait(.1)
end
end
if humanoid == 100 then
for i = 1, 10 do
black.BackgroundTransparency = black.BackgroundTransparency + 0.10
wait(.1)
end
end
wait(1)
end

3 comments
Why did you do if humanoid == 100 humanoid will never equal 100 do you mean humanoid.Health?
Oops, thanks for that, will test that now.
The black screen doesn't come up at all. That fixes one of the minor problems but its still not appearing.