Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would i do this?

Asked by 10 years ago

how would i make a textlabel do this if somewone died?

[CONSOLE]: Player has Died!

1 answer

Log in to vote
1
Answered by 10 years ago
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)
0
Lol your really helping me on this, thanks Alot. digitalzer3 123 — 10y
0
No problem. Tempestatem 884 — 10y
0
Also one more thing do you know the same thing but it would say [CONSOLE]: Player has Entered or Player has Left the game? digitalzer3 123 — 10y
0
Yes I will PM you the script Tempestatem 884 — 10y
Ad

Answer this question