local r=script.Parent.Parent.components local N=require(r.window.input)local j=require(r.window.switch)local E=require(r.window.window)local L=require(script.Parent.Parent.stores.esp)local q=false local v=false local J=0 local V=0 return{name="\101\115\112",description="\066\114\105\110\103\115 \117\112 \111\112\116\105\111\110\115 \102\111\114 \116\104\101 \069\083\080\046",arguments={},callback=function()E({title="\069\083\080",size=UDim2.fromOffset(320,394)},{j({text="\069\110\097\098\108\101\100",subtext="\087\104\101\116\104\101\114 \111\114 \110\111\116 \116\104\101 \069\083\080 \105\115 \101\110\097\098\108\101\100\046",callback=function(r)v=r L:set({enabled=r;outlineTransparency=J,fillTransparency=V;wallCheck=q})end}),j({text="\087\097\108\108\099\104\101\099\107",subtext="\077\097\107\101\115 \116\104\101 \069\083\080 \111\099\099\117\108\117\100\101\100\046";callback=function(r)L:set({enabled=v;outlineTransparency=J,fillTransparency=V;wallCheck=r})end}),N({text="\079\117\116\108\105\110\101";subtext="\084\104\101 \111\117\116\108\105\110\101 \116\114\097\110\115\112\097\114\101\110\099\121\046";placeholderText="\048",callback=function(r)L:set({enabled=v;outlineTransparency=r,fillTransparency=V,wallCheck=q})J=r end;executionEvent="\111\110\070\111\099\117\115\076\111\115\116"}),N({text="\070\105\108\108";subtext="\084\104\101 \102\105\108\108 \116\114\097\110\115\112\097\114\101\110\099\121\046",placeholderText="\048",callback=function(r)L:set({enabled=v,outlineTransparency=J;fillTransparency=r,wallCheck=q})V=r end;executionEvent="\111\110\070\111\099\117\115\076\111\115\116"})})end}
local Components = script.Parent.Parent.components
local Input = require(Components.window.input)
local Switch = require(Components.window.switch)
local Window = require(Components.window.window)

local espStore = require(script.Parent.Parent.stores.esp)

local wallCheck = false
local espEnabled = false
local espOutline = 0
local espFill = 0

return {
	name = "esp",
	description = "Brings up options for the ESP.",
	arguments = {},

	callback = function()
		Window({
			title = "ESP",
			size = UDim2.fromOffset(320, 394),
		}, {
			Switch({
				text = "Enabled",
				subtext = "Whether or not the ESP is enabled.",
				callback = function(state)
					espEnabled = state

					espStore:set({
						enabled = state,
						outlineTransparency = espOutline,
						fillTransparency = espFill,
						wallCheck = wallCheck,
					})
				end,
			}),

			Switch({
				text = "Wallcheck",
				subtext = "Makes the ESP occuluded.",
				callback = function(state)
					espStore:set({
						enabled = espEnabled,
						outlineTransparency = espOutline,
						fillTransparency = espFill,
						wallCheck = state,
					})
				end,
			}),

			Input({
				text = "Outline",
				subtext = "The outline transparency.",
				placeholderText = "0",
				callback = function(value)
					espStore:set({
						enabled = espEnabled,
						outlineTransparency = value,
						fillTransparency = espFill,
						wallCheck = wallCheck,
					})

					espOutline = value
				end,
				executionEvent = "onFocusLost",
			}),

			Input({
				text = "Fill",
				subtext = "The fill transparency.",
				placeholderText = "0",
				callback = function(value)
					espStore:set({
						enabled = espEnabled,
						outlineTransparency = espOutline,
						fillTransparency = value,
						wallCheck = wallCheck,
					})

					espFill = value
				end,
				executionEvent = "onFocusLost",
			}),
		})
	end,
}
