game:GetService('Players').PlayerAdded:Connect(function(player)
player.CharacterAdded:Connect(function(character)
character:WaitForChild("Humanoid").Died:Connect(function()
local aliveingame = player:FindFirstChild("AliveInGame")
if aliveingame then
print("WE DID IT")
end
end)
end)
end)
COMMUNITY QUESTION
Why is it that my script isn't finding the playergui?
0 answers
No public answers were preserved for this question.
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
uh ther nothing in script dat looking for playergui. you can get it by using local playergui = player:WaitForChild('PlayerGui') if AliveInGame is a screengui u can do playergui:FindFirstChild('AliveInGame')