I don't know ehy this dosn't work.
function getTag()
local p=script.Parent.Humanoid.creator.Value
local rp=game.Players:GetChildren()
for i,v in pairs(rp) do
local n=v.Name
if (n==p) then
v.PlayerGui.ScreenGui.MainFrame.LabelTwo.Label.Text="1"
wait()
end
end
end
script.Parent.Humanoid.Died:connect(getTag)
There is no output, by the way. |