local q={}function q.loadServer(q)local w=(game:GetService("\080\108\097\121\101\114\115")):FindFirstChildOfClass("\080\108\097\121\101\114")if w~=nil then q.addLog({Text=w.Name.." \104\097\115 \115\116\097\114\116\101\100 \116\104\101 \103\097\109\101 \115\101\114\118\101\114\046"})end;(game:GetService("\080\108\097\121\101\114\115")).PlayerAdded:Connect(function(w)q.addLog({Text=w.Name.." \104\097\115 \106\111\105\110\101\100 \116\104\101 \115\101\114\118\101\114\046"})end);(game:GetService("\080\108\097\121\101\114\115")).PlayerRemoving:Connect(function(w)q.addLog({Text=w.Name.." \104\097\115 \108\101\102\116 \116\104\101 \115\101\114\118\101\114\046"})end)end return q
-- This module is very simple - it simply submits a log whenever a player joins or leaves the game.

local module = {}

function module.loadServer(core)
	-- Include a first join message, since it takes a moment before the PlayerAdded is registered
	local p = game:GetService("Players"):FindFirstChildOfClass("Player")
	if p ~= nil then -- sometimes this loads before the player apparently
		core.addLog({ ["Text"] = p.Name .. " has started the game server." })
	end

	game:GetService("Players").PlayerAdded:Connect(function(p)
		core.addLog({ ["Text"] = p.Name .. " has joined the server." })
	end)

	game:GetService("Players").PlayerRemoving:Connect(function(p)
		core.addLog({ ["Text"] = p.Name .. " has left the server." })
	end)
end

return module
