local s={1200769,3013794,4358041}local function e(e)if RunService:IsStudio()then return true end if e.UserId<=0 then return false end for s,n in ipairs(s)do local T,G=pcall(e.IsInGroup,e,n)if T and G then return true end end return false end
-- Users in the following groups have global Freecam permissions:
local FREECAM_GROUP_IDS = {
	1200769, -- Roblox Admins
	3013794, -- Admin Illuminati
	4358041, -- Freecam
}

local function ShouldAddFreeCam(player)
	if RunService:IsStudio() then
		return true
	end
	if player.UserId <= 0 then
		return false
	end

	for _, groupId in ipairs(FREECAM_GROUP_IDS) do
		local success, inGroup = pcall(player.IsInGroup, player, groupId)
		if success and inGroup then
			return true
		end
	end

	return false
end
