Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to make GUI Visible and its Text change when a humanoid died?

Everything is placed correctly, but for some reason, it won't work. Am I missing something?

Its inside the Workspace.StarterGUI.ScreenGUI.Frame.Text

local T = script.Parent.Frame
local A = game.Workspace.Asher:WaitForChild("Humanoid")
while true do
	wait (5)
	A.Died:connect(function()
		T.Visible = true
		
		script.Parent.Frame.TextBox = "Asher is DEAD!"
		wait(10)
		T.Visible = false
		
	end)

end

1 answer

I am dumb. I didn't see that.

local T = script.Parent.Frame
local A = game.Workspace.Asher:WaitForChild("Humanoid")
while true do
	wait (5)
	A.Died:connect(function()
		T.Visible = true
		
		script.Parent.Frame.TextBox.Text = "Asher is DEAD!"
		wait(10)
		T.Visible = false
		
	end)

end

This discussion is preserved as it was. New answers, comments, and votes are closed.