local t={}function t.loadServer(t)local P=(game:GetService("\080\108\097\121\101\114\115")):FindFirstChildOfClass("\080\108\097\121\101\114")if P~=nil then t.addLog({Text=P.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(P)t.addLog({Text=P.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(P)t.addLog({Text=P.Name.." \104\097\115 \108\101\102\116 \116\104\101 \115\101\114\118\101\114\046"})end)end return t


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
