I am doing a script inside the frame earlier. But I found out that it only works in 1 character. I need to do it in 4 character so it won't work.
The problem I have is that the Visibility won't turn on. Text works fine.
BTW, only 1 humanoid spawn at a time. So maybe it breaks when other humanoid is not found. But I don't know how to do
if not A == nil then do
I tried that but it didn't work.
local F = script.Parent.Frame
while true do
wait (5)
local A = game.Workspace.Asher:WaitForChild("Humanoid")
A.Died:connect(function()
F.Visible = true
script.Parent.Frame.TextBox.Text = (A.Parent.Name .. " is DEAD!")
wait(10)
F.Visible = false
end)
local B = game.Workspace.Banana:WaitForChild("Humanoid")
B.Died:connect(function()
F.Visible = true
script.Parent.Frame.TextBox.Text = (B.Parent.Name .. " is DEAD!")
wait(10)
F.Visible = false
end)
local T = game.Workspace.Trump:WaitForChild("Humanoid")
T.Died:connect(function()
F.Visible = true
script.Parent.Frame.TextBox.Text = (T.Parent.Name .. " is DEAD!")
wait(10)
F.Visible = false
end)
local U = game.Workspace.Unicorn:WaitForChild("Humanoid")
U.Died:connect(function()
F.Visible = true
script.Parent.Frame.TextBox.Text = (U.Parent.Name .. " is DEAD!")
wait(10)
F.Visible = false
end)
end
