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

Why Doesnt This Work? Please Help!Please...

Workspace.ChildRemoved:connect(function(child)
		script.Parent.Text = "Someone Named, "..child.Name..", Left the Server"
		print(child.Name)
end)

WHY???

2 answers

Instead of focusing on Workspace, focus on Players... Use the PlayerRemoving event.

game.Players.PlayerRemoving:connect(function(player)
	script.Parent.Text = player.Name.." has left the server."
end)

Put this in a LocalScript

child = game.Players.LocalPlayer
game.Players.PlayerRemoving:connect(function()
	script.Parent.Text = "Someone named, "..child.Name..", left the Server"
end)

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