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


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
