First off, the efficiency is an eyesore but i dont know how i could make it better (if i can), and an error keeps saying
22:05:22.324 - Players.Player1.PlayerGui.DeathScreen.Play:1: attempt to index field 'Character' (a nil value)
and for the person who died
22:05:49.675 - death is not a valid member of ScreenGui
and heres my setup http://gyazo.com/10e18bf65f79273159a17fa049208ee2
if game.Players.LocalPlayer.Character.Humanoid.Health == 0 then
local main = script.Parent
local skull = main.Skull
local text = main.death
wait(.5)
--skull
skull.Visible = true
skull.ImageTransparency = 1
wait(.01)
skull.ImageTransparency = .9
wait(.01)
skull.ImageTransparency = .8
wait(.01)
skull.ImageTransparency = .7
wait(.01)
skull.ImageTransparency = .6
wait(.01)
skull.ImageTransparency = .5
wait(.01)
skull.ImageTransparency = .4
wait(.01)
skull.ImageTransparency = .3
wait(.01)
skull.ImageTransparency = .2
wait(.01)
skull.ImageTransparency = .1
wait(.01)
skull.ImageTransparency = 0
wait(1)
--text
text.ImageTransparency = 1
wait(.01)
text.ImageTransparency = .9
wait(.01)
text.ImageTransparency = .8
wait(.01)
text.ImageTransparency = .7
wait(.01)
text.ImageTransparency = .6
wait(.01)
text.ImageTransparency = .5
wait(.01)
text.ImageTransparency = .4
wait(.01)
text.ImageTransparency = .3
wait(.01)
text.ImageTransparency = .2
wait(.01)
text.ImageTransparency = .1
wait(.01)
text.ImageTransparency = 0
wait(1)
wait()
end
(yes im aware i need to change the kind of transparency for the text but not even the skull shows)

1 comment
I don't really know why they're not becoming visible, Check ZIndex? and besides that, try to use for loops : >