return function(q,U)if U then setfenv(1,U)end local Q=service.New("\083\099\114\101\101\110\071\117\105")local T=q.Mode local R=client.UI.Register(Q,{Name="\069\102\102\101\099\116"})local D=R.BindEvent client.UI.Remove("\069\102\102\101\099\116",Q)R:Ready()if T=="\079\102\102"or not T then R:Destroy()elseif T=="\080\105\120\101\108\105\122\101"then local U=Instance.new("\070\114\097\109\101")U.Parent=Q local T=workspace.CurrentCamera local D={}local L=q.Resolution or 20 local Z=q.Resolution or 20 local e=0 local J=q.Distance or 80 local function a()for q,U in pairs(D)do local Q=T:ScreenPointToRay(U.X,U.Y,e)local R=workspace:Raycast(Q.Origin,Q.Direction*J)local D,L=R.Instance,R.Position if D and D.Transparency<1 then U.Pixel.BackgroundColor3=D.BrickColor.Color else U.Pixel.BackgroundColor3=Color3.fromRGB(105,170,255)end end end U.Size=UDim2.new(1,0,1,40)U.Position=UDim2.new(0,0,0,-35)for q=0,Q.AbsoluteSize.Y+50,L do for Q=0,Q.AbsoluteSize.X+30,Z do local T=Instance.new("\084\101\120\116\076\097\098\101\108")T.Text=""T.BorderSizePixel=0 T.Size=UDim2.new(0,Z,0,L)T.Position=UDim2.new(0,Q-Z/2,0,q-L/2)T.BackgroundColor3=Color3.fromRGB(105,170,255)T.Parent=U table.insert(D,{Pixel=T;X=Q;Y=q})end end while wait()and(not R.Destroyed and Q.Parent)do if not R.Destroyed and not R.Active then wait(5)else a()end end R:Destroy()elseif T=="\070\097\100\101\079\117\116"then service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)service.UserInputService.MouseIconEnabled=false for q,U in pairs(service.PlayerGui:GetChildren())do pcall(function()if U~=Q then U:Destroy()end end)end local q=service.New("\066\108\117\114\069\102\102\101\099\116",{Name="\065\100\111\110\105\115\095\070\097\100\101\079\117\116\095\066\108\117\114";Parent=service.Lighting,Size=0})local U=service.New("\070\114\097\109\101",{Parent=Q,BackgroundTransparency=1,BackgroundColor3=Color3.new(0,0,0),Size=UDim2.new(2,0,2,0),Position=UDim2.new(-0.5,0,-0.5,0)})for Q=1,0,-0.01 do U.BackgroundTransparency=Q q.Size=56*(1-Q)wait(.1)end U.BackgroundTransparency=0 elseif T=="\084\114\105\112\112\121"then local q=service.Player local U=Instance.new("\070\114\097\109\101")U.BackgroundColor3=Color3.new(0,0,0)U.BackgroundTransparency=0 U.Size=UDim2.new(10,0,10,0)U.Position=UDim2.new(-5,0,-5,0)U.ZIndex=10 U.Parent=Q while Q and Q.Parent do wait(.022727272727273)U.BackgroundColor3=Color3.new(math.random(255)/255,math.random(255)/255,math.random(255)/255)end if Q then Q:Destroy()end elseif T=="\083\112\111\111\107\121"then local q=Instance.new("\070\114\097\109\101")q.BackgroundColor3=Color3.new(0,0,0)q.Size=UDim2.new(1,0,1,50)q.Position=UDim2.new(0,0,0,-50)q.Parent=Q local U=Instance.new("\073\109\097\103\101\076\097\098\101\108")U.Position=UDim2.new(0,0,0,0)U.Size=UDim2.new(1,0,1,0)U.BorderSizePixel=0 U.BackgroundColor3=Color3.new(0,0,0)U.Parent=q local T={299735022;299735054,299735082;299735103,299735133;299735156,299735177,299735198;299735219;299735245;299735269,299735289,299735304;299735320,299735332;299735361;299735379}local R=Instance.new("\083\111\117\110\100")R.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\055\052\050\055\048\052\048\055"R.Looped=true R.Parent=Q R:Play()while Q and Q.Parent do for q=1,#T,1 do U.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047"..T[q]wait(.1)end end R:Stop()elseif T=="\108\105\102\101\111\102\116\104\101\112\097\114\116\121"then local q=Instance.new("\070\114\097\109\101")q.BackgroundColor3=Color3.new(0,0,0)q.Size=UDim2.new(1,0,1,50)q.Position=UDim2.new(0,0,0,-50)q.Parent=Q local U=Instance.new("\073\109\097\103\101\076\097\098\101\108")U.Position=UDim2.new(0,0,0,0)U.Size=UDim2.new(1,0,1,0)U.BorderSizePixel=0 U.BackgroundColor3=Color3.new(0,0,0)U.Parent=q local T={299733203;299733248;299733284;299733309,299733355,299733386;299733404,299733425;299733472,299733489;299733501,299733523,299733544;299733551,299733564,299733570,299733581,299733597,299733609,299733621;299733632;299733640;299733648,299733663,299733674;299733694}local R=Instance.new("\083\111\117\110\100")R.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\049\055\050\057\048\054\052\049\048"R.Looped=true R.Parent=Q R:Play()while Q and Q.Parent do for q=1,#T,1 do U.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047"..T[q]wait(.1)end end R:Stop()elseif T=="\116\114\111\108\108\105\110\103"then local q=Instance.new("\070\114\097\109\101")q.BackgroundColor3=Color3.new(0,0,0)q.Size=UDim2.new(1,0,1,50)q.Position=UDim2.new(0,0,0,-50)q.Parent=Q local U=Instance.new("\073\109\097\103\101\076\097\098\101\108")U.Position=UDim2.new(0,0,0,0)U.Size=UDim2.new(1,0,1,0)U.BorderSizePixel=0 U.BackgroundColor3=Color3.new(0,0,0)U.Parent=q local T={"\054\049\055\050\048\052\051\054\056\056","\054\049\055\050\048\052\052\052\055\056";"\054\049\055\050\048\052\053\049\057\051";"\054\049\055\050\048\052\053\055\057\055","\054\049\055\050\048\052\054\052\057\048","\054\049\055\050\048\052\055\049\055\050","\054\049\055\050\048\052\055\057\052\055","\054\049\055\050\048\052\056\054\055\052";"\054\049\055\050\048\053\048\049\057\053";"\054\049\055\050\048\053\048\056\057\050";"\054\049\055\050\048\053\049\054\054\057","\054\049\055\050\048\053\051\048\056\053","\054\049\055\050\048\053\052\055\053\050","\054\049\055\050\048\053\052\055\053\050";"\054\049\055\050\048\053\051\048\056\053","\054\049\055\050\048\053\049\054\054\057";"\054\049\055\050\048\053\048\056\057\050","\054\049\055\050\048\053\048\049\057\053";"\054\049\055\050\048\052\056\054\055\052";"\054\049\055\050\048\052\055\057\052\055","\054\049\055\050\048\052\055\049\055\050","\054\049\055\050\048\052\054\052\057\048";"\054\049\055\050\048\052\053\055\057\055";"\054\049\055\050\048\052\053\049\057\051","\054\049\055\050\048\052\052\052\055\056","\054\049\055\050\048\052\051\054\056\056"}local R=Instance.new("\083\111\117\110\100")R.SoundId="\114\098\120\097\115\115\101\116\105\100\058\047\047\050\050\057\054\056\049\056\057\057"R.Looped=true R.Parent=Q R:Play()while Q and Q.Parent do for q=1,#T,1 do U.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047"..T[q]wait(.13)end end R:Stop()elseif T=="\083\116\114\111\098\101"then local q=Instance.new("\070\114\097\109\101")q.BackgroundColor3=Color3.new(0,0,0)q.BackgroundTransparency=0 q.Size=UDim2.new(10,0,10,0)q.Position=UDim2.new(-5,0,-5,0)q.ZIndex=10 q.Parent=Q while Q and Q.Parent do wait(.022727272727273)q.BackgroundColor3=Color3.new(1,1,1)wait(.022727272727273)q.BackgroundColor3=Color3.new(0,0,0)end if Q then Q:Destroy()end elseif T=="\066\108\105\110\100"then local q=Instance.new("\070\114\097\109\101")q.BackgroundColor3=Color3.new(0,0,0)q.BackgroundTransparency=0 q.Size=UDim2.new(10,0,10,0)q.Position=UDim2.new(-5,0,-5,0)q.ZIndex=10 q.Parent=Q elseif T=="\083\099\114\101\101\110\073\109\097\103\101"then local U=Instance.new("\073\109\097\103\101\076\097\098\101\108")U.Image="\114\098\120\097\115\115\101\116\105\100\058\047\047"..q.Image U.BackgroundColor3=Color3.new(0,0,0)U.BackgroundTransparency=0 U.Size=UDim2.new(1,0,1,0)U.Position=UDim2.new(0,0,0,0)U.ZIndex=10 U.Parent=Q elseif T=="\083\099\114\101\101\110\086\105\100\101\111"then local U=Instance.new("\086\105\100\101\111\070\114\097\109\101")U.Video="\114\098\120\097\115\115\101\116\105\100\058\047\047"..q.Video U.BackgroundColor3=Color3.new(0,0,0)U.BackgroundTransparency=0 U.Size=UDim2.new(1,0,1,0)U.Position=UDim2.new(0,0,0,0)U.ZIndex=10 U.Parent=Q U:Play()end end
--// All global vars will be wiped/replaced except script
--// All guis are autonamed using client.Functions.GetRandom()

return function(data, env)
	if env then
		setfenv(1, env)
	end

	local gui = service.New("ScreenGui")
	local mode = data.Mode
	local gTable = client.UI.Register(gui, { Name = "Effect" })
	local BindEvent = gTable.BindEvent

	client.UI.Remove("Effect", gui)
	gTable:Ready()

	if mode == "Off" or not mode then
		gTable:Destroy()
	elseif mode == "Pixelize" then
		local frame = Instance.new("Frame")
		frame.Parent = gui
		local camera = workspace.CurrentCamera
		local pixels = {}

		local resY = data.Resolution or 20
		local resX = data.Resolution or 20
		local depth = 0
		local distance = data.Distance or 80

		local function renderScreen()
			for i, pixel in pairs(pixels) do
				local ray = camera:ScreenPointToRay(pixel.X, pixel.Y, depth)
				local result = workspace:Raycast(ray.Origin, ray.Direction * distance)
				local part, endPoint = result.Instance, result.Position
				if part and part.Transparency < 1 then
					pixel.Pixel.BackgroundColor3 = part.BrickColor.Color
				else
					pixel.Pixel.BackgroundColor3 = Color3.fromRGB(105, 170, 255)
				end
			end
		end

		frame.Size = UDim2.new(1, 0, 1, 40)
		frame.Position = UDim2.new(0, 0, 0, -35)
		for y = 0, gui.AbsoluteSize.Y + 50, resY do
			for x = 0, gui.AbsoluteSize.X + 30, resX do
				local pixel = Instance.new("TextLabel")
				pixel.Text = ""
				pixel.BorderSizePixel = 0
				pixel.Size = UDim2.new(0, resX, 0, resY)
				pixel.Position = UDim2.new(0, x - (resX / 2), 0, y - (resY / 2))
				pixel.BackgroundColor3 = Color3.fromRGB(105, 170, 255)
				pixel.Parent = frame
				table.insert(pixels, { Pixel = pixel, X = x, Y = y })
			end
		end

		while wait() and not gTable.Destroyed and gui.Parent do
			if not gTable.Destroyed and not gTable.Active then
				wait(5)
			else
				renderScreen()
			end
		end

		gTable:Destroy()
	elseif mode == "FadeOut" then
		service.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All, false)
		service.UserInputService.MouseIconEnabled = false

		for i, v in pairs(service.PlayerGui:GetChildren()) do
			pcall(function()
				if v ~= gui then
					v:Destroy()
				end
			end)
		end

		local blur = service.New("BlurEffect", {
			Name = "Adonis_FadeOut_Blur",
			Parent = service.Lighting,
			Size = 0,
		})

		local bg = service.New("Frame", {
			Parent = gui,
			BackgroundTransparency = 1,
			BackgroundColor3 = Color3.new(0, 0, 0),
			Size = UDim2.new(2, 0, 2, 0),
			Position = UDim2.new(-0.5, 0, -0.5, 0),
		})

		for i = 1, 0, -0.01 do
			bg.BackgroundTransparency = i
			blur.Size = 56 * (1 - i)
			wait(0.1)
		end

		bg.BackgroundTransparency = 0
	elseif mode == "Trippy" then
		local v = service.Player
		local bg = Instance.new("Frame")

		bg.BackgroundColor3 = Color3.new(0, 0, 0)
		bg.BackgroundTransparency = 0
		bg.Size = UDim2.new(10, 0, 10, 0)
		bg.Position = UDim2.new(-5, 0, -5, 0)
		bg.ZIndex = 10
		bg.Parent = gui

		while gui and gui.Parent do
			wait(1 / 44)
			bg.BackgroundColor3 = Color3.new(math.random(255) / 255, math.random(255) / 255, math.random(255) / 255)
		end

		if gui then
			gui:Destroy()
		end
	elseif mode == "Spooky" then
		local frame = Instance.new("Frame")
		frame.BackgroundColor3 = Color3.new(0, 0, 0)
		frame.Size = UDim2.new(1, 0, 1, 50)
		frame.Position = UDim2.new(0, 0, 0, -50)
		frame.Parent = gui
		local img = Instance.new("ImageLabel")
		img.Position = UDim2.new(0, 0, 0, 0)
		img.Size = UDim2.new(1, 0, 1, 0)
		img.BorderSizePixel = 0
		img.BackgroundColor3 = Color3.new(0, 0, 0)
		img.Parent = frame
		local textures = {
			299735022,
			299735054,
			299735082,
			299735103,
			299735133,
			299735156,
			299735177,
			299735198,
			299735219,
			299735245,
			299735269,
			299735289,
			299735304,
			299735320,
			299735332,
			299735361,
			299735379,
		}

		local sound = Instance.new("Sound")
		sound.SoundId = "rbxassetid://174270407"
		sound.Looped = true
		sound.Parent = gui
		sound:Play()

		while gui and gui.Parent do
			for i = 1, #textures do
				img.Image = "rbxassetid://" .. textures[i]
				wait(0.1)
			end
		end
		sound:Stop()
	elseif mode == "lifeoftheparty" then
		local frame = Instance.new("Frame")
		frame.BackgroundColor3 = Color3.new(0, 0, 0)
		frame.Size = UDim2.new(1, 0, 1, 50)
		frame.Position = UDim2.new(0, 0, 0, -50)
		frame.Parent = gui
		local img = Instance.new("ImageLabel")
		img.Position = UDim2.new(0, 0, 0, 0)
		img.Size = UDim2.new(1, 0, 1, 0)
		img.BorderSizePixel = 0
		img.BackgroundColor3 = Color3.new(0, 0, 0)
		img.Parent = frame
		local textures = {
			299733203,
			299733248,
			299733284,
			299733309,
			299733355,
			299733386,
			299733404,
			299733425,
			299733472,
			299733489,
			299733501,
			299733523,
			299733544,
			299733551,
			299733564,
			299733570,
			299733581,
			299733597,
			299733609,
			299733621,
			299733632,
			299733640,
			299733648,
			299733663,
			299733674,
			299733694,
		}
		local sound = Instance.new("Sound")
		sound.SoundId = "rbxassetid://172906410"
		sound.Looped = true
		sound.Parent = gui
		sound:Play()

		while gui and gui.Parent do
			for i = 1, #textures do
				img.Image = "rbxassetid://" .. textures[i]
				wait(0.1)
			end
		end

		sound:Stop()
	elseif mode == "trolling" then
		local frame = Instance.new("Frame")
		frame.BackgroundColor3 = Color3.new(0, 0, 0)
		frame.Size = UDim2.new(1, 0, 1, 50)
		frame.Position = UDim2.new(0, 0, 0, -50)
		frame.Parent = gui
		local img = Instance.new("ImageLabel")
		img.Position = UDim2.new(0, 0, 0, 0)
		img.Size = UDim2.new(1, 0, 1, 0)
		img.BorderSizePixel = 0
		img.BackgroundColor3 = Color3.new(0, 0, 0)
		img.Parent = frame
		local textures = {
			"6172043688",
			"6172044478",
			"6172045193",
			"6172045797",
			"6172046490",
			"6172047172",
			"6172047947",
			"6172048674",
			"6172050195",
			"6172050892",
			"6172051669",
			"6172053085",
			"6172054752",
			"6172054752",
			"6172053085",
			"6172051669",
			"6172050892",
			"6172050195",
			"6172048674",
			"6172047947",
			"6172047172",
			"6172046490",
			"6172045797",
			"6172045193",
			"6172044478",
			"6172043688",
		}
		local sound = Instance.new("Sound")
		sound.SoundId = "rbxassetid://229681899"
		sound.Looped = true
		sound.Parent = gui
		sound:Play()

		while gui and gui.Parent do
			for i = 1, #textures do
				img.Image = "rbxassetid://" .. textures[i]
				wait(0.13)
			end
		end

		sound:Stop()
	elseif mode == "Strobe" then
		local bg = Instance.new("Frame")
		bg.BackgroundColor3 = Color3.new(0, 0, 0)
		bg.BackgroundTransparency = 0
		bg.Size = UDim2.new(10, 0, 10, 0)
		bg.Position = UDim2.new(-5, 0, -5, 0)
		bg.ZIndex = 10
		bg.Parent = gui

		while gui and gui.Parent do
			wait(1 / 44)
			bg.BackgroundColor3 = Color3.new(1, 1, 1)
			wait(1 / 44)
			bg.BackgroundColor3 = Color3.new(0, 0, 0)
		end
		if gui then
			gui:Destroy()
		end
	elseif mode == "Blind" then
		local bg = Instance.new("Frame")
		bg.BackgroundColor3 = Color3.new(0, 0, 0)
		bg.BackgroundTransparency = 0
		bg.Size = UDim2.new(10, 0, 10, 0)
		bg.Position = UDim2.new(-5, 0, -5, 0)
		bg.ZIndex = 10
		bg.Parent = gui
	elseif mode == "ScreenImage" then
		local bg = Instance.new("ImageLabel")
		bg.Image = "rbxassetid://" .. data.Image
		bg.BackgroundColor3 = Color3.new(0, 0, 0)
		bg.BackgroundTransparency = 0
		bg.Size = UDim2.new(1, 0, 1, 0)
		bg.Position = UDim2.new(0, 0, 0, 0)
		bg.ZIndex = 10
		bg.Parent = gui
	elseif mode == "ScreenVideo" then
		local bg = Instance.new("VideoFrame")
		bg.Video = "rbxassetid://" .. data.Video
		bg.BackgroundColor3 = Color3.new(0, 0, 0)
		bg.BackgroundTransparency = 0
		bg.Size = UDim2.new(1, 0, 1, 0)
		bg.Position = UDim2.new(0, 0, 0, 0)
		bg.ZIndex = 10
		bg.Parent = gui
		bg:Play()
	end
end
