local W={}W.panels={}local k=40000 local w=require(script.VideoControl.Value)local function m(W,w)local m=Instance.new("\065\116\116\097\099\104\109\101\110\116",W)m.WorldPosition=w.Position for W,w in pairs(w.VisualScreen.Main:GetChildren())do if w:IsA("\073\109\097\103\101\076\097\098\101\108")then w.Position=UDim2.new(.5,m.Position.X*k,.5,(m.Position.Y-m.Position.Z)*k)end end for W,w in pairs(w.VisualScreen.SpriteVisual:GetChildren())do if w:IsA("\073\109\097\103\101\076\097\098\101\108")then w.Position=UDim2.new(.5,m.Position.X*k,.5,(m.Position.Y-m.Position.Z)*k)end end w.VisualScreen.CanvasSize=Vector2.new(w.Size.X*k,w.Size.Y*k)m:Destroy()end function W.Start(k)local z=k.CenterPart if k:FindFirstChild("\080\097\110\101\108\115")then for k,w in pairs(k.Panels:GetChildren())do local B=script.Main:Clone()local O=script.SpriteVisual:Clone()B.Parent=w.VisualScreen O.Parent=w.VisualScreen m(z,w)table.insert(W.panels,w)w.Debug:Destroy()end end w.SpriteStart()end return W
-- VisualComponents by Travis, modified for native visuals.

local module = {}

module.panels = {}

local MapConstant = 40000
local VideoControl = require(script.VideoControl.Value)

local function mapScreen(center, screen)
	local dif = Instance.new("Attachment", center)
	dif.WorldPosition = screen.Position

	for i, v in pairs(screen.VisualScreen.Main:GetChildren()) do
		if v:IsA("ImageLabel") then
			v.Position =
				UDim2.new(0.5, dif.Position.X * MapConstant, 0.5, (dif.Position.Y - dif.Position.Z) * MapConstant)
		end
	end
	for i, v in pairs(screen.VisualScreen.SpriteVisual:GetChildren()) do
		if v:IsA("ImageLabel") then
			v.Position =
				UDim2.new(0.5, dif.Position.X * MapConstant, 0.5, (dif.Position.Y - dif.Position.Z) * MapConstant)
		end
	end

	screen.VisualScreen.CanvasSize = Vector2.new((screen.Size.X * MapConstant), (screen.Size.Y * MapConstant))
	dif:Destroy()
end

function module.Start(screensFolder)
	local center = screensFolder.CenterPart
	if screensFolder:FindFirstChild("Panels") then
		for i, v in pairs(screensFolder.Panels:GetChildren()) do
			local cloneFrame = script.Main:Clone()
			local cloneFrame1 = script.SpriteVisual:Clone()
			cloneFrame.Parent = v.VisualScreen
			cloneFrame1.Parent = v.VisualScreen
			mapScreen(center, v)
			table.insert(module.panels, v)
			v.Debug:Destroy()
		end
	end
	VideoControl.SpriteStart()
end

return module
