local n=require((game.ReplicatedStorage:WaitForChild("\070\114\097\109\101\119\111\114\107")):WaitForChild("\076\105\098\114\097\114\121"))while not n.Loaded do(game:GetService("\082\117\110\083\101\114\118\105\099\101")).Heartbeat:Wait()end local u=nil function Unlock()u:Destroy()end function IsUnlocked()if(n.Save.Get()).OwnsVaultGate then return true end return false end function Buy()local u,t=n.Network.Invoke("\066\117\121 \086\097\117\108\116 \071\097\116\101")if not u then n.Message.New(t or"\069\114\114\111\114")else Unlock()return end end function Prompt()if n.Message.New("\068\111 \121\111\117 \119\097\110\116 \116\111 \117\110\108\111\099\107 \063",true)then Buy()end end function Setup()local t=n.WorldCmds.GetMap()if t:FindFirstChild("\073\110\116\101\114\097\099\116\105\118\101")then u=t.Interactive:FindFirstChild("\083\101\099\114\101\116 \086\097\117\108\116")if u then if IsUnlocked()then else local t,C=n.Interact.Add(u:FindFirstChild("\073\110\116\101\114\097\099\116"),{dist=15})t:Connect(function()Prompt()end)return end else return end else return end Unlock()end;(n.Signal.Fired("\087\111\114\108\100 \067\104\097\110\103\101\100")):Connect(function(n)if n=="\072\097\117\110\116\101\100"then Setup()end end)
-- ALEX WAS HERE LOL
local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"))
while not v1.Loaded do
	game:GetService("RunService").Heartbeat:Wait()
end
local u1 = nil
function Unlock()
	u1:Destroy()
end
function IsUnlocked()
	if v1.Save.Get().OwnsVaultGate then
		return true
	end
	return false
end
function Buy()
	local v2, v3 = v1.Network.Invoke("Buy Vault Gate")
	if not v2 then
		v1.Message.New(v3 or "Error")
	else
		Unlock()
		return
	end
end
function Prompt()
	if v1.Message.New("Do you want to unlock ?", true) then
		Buy()
	end
end
function Setup()
	local v4 = v1.WorldCmds.GetMap()
	if v4:FindFirstChild("Interactive") then
		u1 = v4.Interactive:FindFirstChild("Secret Vault")
		if u1 then
			if IsUnlocked() then
			else
				local v5, v6 = v1.Interact.Add(u1:FindFirstChild("Interact"), {
					dist = 15,
				})
				v5:Connect(function()
					Prompt()
				end)
				return
			end
		else
			return
		end
	else
		return
	end
	Unlock()
end
v1.Signal.Fired("World Changed"):Connect(function(p1)
	if p1 == "Haunted" then
		Setup()
	end
end)
