function Foo(args) print(args.player:GetName().." left the server") end Events:Subscribe("PlayerQuit", Foo)