local function G(G)for R,d in pairs(SQUADS:GetChildren())do if d.Players:FindFirstChild(G.Name)then return d end end end
-- functions

local function GetSquad(player)
	for _, squad in pairs(SQUADS:GetChildren()) do
		if squad.Players:FindFirstChild(player.Name) then
			return squad
		end
	end
end
