I think my gui is fine but it isnt working!

print("DeathScreen loaded")
player = game.Players.LocalPlayer
character = player.Character

if character.Humanoid <1 then
	print("Player is dead.")
	script.Parent.Frame.Visible = true
	script.Parent.Text.Visible = true
		script.Parent.Static:Play()
		print("Static is playing.")
	end

1 comment

0

character.Humanoid is the instance which cannot be compared to a number. Use the humanoid health changed event http://wiki.roblox.com/index.php?title=API:Class/Humanoid/HealthChanged