Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How would i do this?

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

[CONSOLE]: Player has Died!

1 answer

✓ Accepted answer
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)

4 comments

0

Lol your really helping me on this, thanks Alot.

0

No problem.

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?

0

Yes I will PM you the script

This discussion is preserved as it was. New answers, comments, and votes are closed.