How can I make the Frame instantly visible after player dying

I want it so if the player dies the Revive frame visibility will be set to true, the code currently does this but only when the player has respawned. I’d like that the frame would be visible instantly when the player has died.

I have tried to make a function but the Died:Connect(function() doesn’t wanna accept any functions I dont know why.

game.Players.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Char)
		Char.Humanoid.Died:Connect(function()
			game.StarterGui.Revive.Revive.Visible = true
		end)
	end)
end)

You want to modify the PlayerGui and the StartGui. Try this:

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.