how would i make a textlabel do this if somewone died?
[CONSOLE]: Player has Died!
how would i make a textlabel do this if somewone died?
[CONSOLE]: Player has Died!
game:GetService('Players').PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild("Humanoid").Died:connect(function()
for k, p in pairs(game.Players:GetPlayers()) do
p.PlayerGui.ScreenGui.Frame.TextLabel.Text=tostring(player.Name)-- change this to whatever it is, Ex: p.PlayerGui.ScreenGui.TextLabel.Text etc. etc.
end
end)
end)
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
4 comments
Lol your really helping me on this, thanks Alot.
No problem.
Also one more thing do you know the same thing but it would say [CONSOLE]: Player has Entered or Player has Left the game?
Yes I will PM you the script