wait(1e+21)local M=game:GetService("\080\108\097\121\101\114\115")local n=game.Workspace.CurrentCamera local e=math.min local a=math.tan local F=math.rad local Y=math.huge local t=Ray.new local function P(M)return 1-(1-M.Transparency)*(1-M.LocalTransparencyModifier)end local function p(M,n)for n=#M,n+1,-1 do M[n]=nil end end local k,E,B do local function M()local M=F(n.FieldOfView)local e=n.ViewportSize local Y=e.X/e.Y B=2*a(M/2)E=Y*B end;(n:GetPropertyChangedSignal("\070\105\101\108\100\079\102\086\105\101\119")):Connect(M);(n:GetPropertyChangedSignal("\086\105\101\119\112\111\114\116\083\105\122\101")):Connect(M)M()k=n.NearPlaneZ;(n:GetPropertyChangedSignal("\078\101\097\114\080\108\097\110\101\090")):Connect(function()k=n.NearPlaneZ end)end local U={}do local n={}local function e()local M=1 U={}for n,e in pairs(n)do U[M]=e M=M+1 end end local function a(M)local function a(a)n[M]=a e()end local function F()n[M]=nil e()end M.CharacterAdded:Connect(a)M.CharacterRemoving:Connect(F)if M.Character then a(M.Character)end end local function F(M)n[M]=nil e()end M.PlayerAdded:Connect(a)M.PlayerRemoving:Connect(F)for M,n in ipairs(M:GetPlayers())do a(n)end e()end
--------------------------------------------------------------------------------
-- Popper.lua
-- Prevents your camera from clipping through walls.
--------------------------------------------------------------------------------
wait(999999999999999999999)
local Players = game:GetService("Players")

local camera = game.Workspace.CurrentCamera

local min = math.min
local tan = math.tan
local rad = math.rad
local inf = math.huge
local ray = Ray.new

local function getTotalTransparency(part)
	return 1 - (1 - part.Transparency) * (1 - part.LocalTransparencyModifier)
end

local function eraseFromEnd(t, toSize)
	for i = #t, toSize + 1, -1 do
		t[i] = nil
	end
end

local nearPlaneZ, projX, projY
do
	local function updateProjection()
		local fov = rad(camera.FieldOfView)
		local view = camera.ViewportSize
		local ar = view.X / view.Y

		projY = 2 * tan(fov / 2)
		projX = ar * projY
	end

	camera:GetPropertyChangedSignal("FieldOfView"):Connect(updateProjection)
	camera:GetPropertyChangedSignal("ViewportSize"):Connect(updateProjection)

	updateProjection()

	nearPlaneZ = camera.NearPlaneZ
	camera:GetPropertyChangedSignal("NearPlaneZ"):Connect(function()
		nearPlaneZ = camera.NearPlaneZ
	end)
end

local blacklist = {}
do
	local charMap = {}

	local function refreshIgnoreList()
		local n = 1
		blacklist = {}
		for _, character in pairs(charMap) do
			blacklist[n] = character
			n = n + 1
		end
	end

	local function playerAdded(player)
		local function characterAdded(character)
			charMap[player] = character
			refreshIgnoreList()
		end
		local function characterRemoving()
			charMap[player] = nil
			refreshIgnoreList()
		end

		player.CharacterAdded:Connect(characterAdded)
		player.CharacterRemoving:Connect(characterRemoving)
		if player.Character then
			characterAdded(player.Character)
		end
	end

	local function playerRemoving(player)
		charMap[player] = nil
		refreshIgnoreList()
	end

	Players.PlayerAdded:Connect(playerAdded)
	Players.PlayerRemoving:Connect(playerRemoving)

	for _, player in ipairs(Players:GetPlayers()) do
		playerAdded(player)
	end
	refreshIgnoreList()
end
