local L=game:GetService("\080\108\097\121\101\114\115")local w={}w.Players=L function w.getCharacters(L)local I={}for L,w in ipairs(w.Players:GetPlayers())do if w.Character then table.insert(I,w.Character)end end return I end return w
local Players = game:GetService("Players")

local example = {}

-- Exposing the Players service allows it to be mocked in tests
example.Players = Players

function example:getCharacters()
	local characters = {}
	for _, player in ipairs(example.Players:GetPlayers()) do
		if player.Character then
			table.insert(characters, player.Character)
		end
	end
	return characters
end

return example
