Workspace.ChildRemoved:connect(function(child)
script.Parent.Text = "Someone Named, "..child.Name..", Left the Server"
print(child.Name)
end)
WHY???
Workspace.ChildRemoved:connect(function(child)
script.Parent.Text = "Someone Named, "..child.Name..", Left the Server"
print(child.Name)
end)
WHY???
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.