local K=script:FindFirstAncestor("\077\097\105\110\085\073")local D=game.Players.LocalPlayer local C=require(script.Parent)local s=game["\082\117\110 \083\101\114\118\105\099\101"]local N=game:GetService("\084\119\101\101\110\083\101\114\118\105\099\101")local w=game:GetService("\085\115\101\114\073\110\112\117\116\083\101\114\118\105\099\101")local P=game:GetService("\071\117\105\083\101\114\118\105\099\101")local M=game:GetService("\077\097\114\107\101\116\112\108\097\099\101\083\101\114\118\105\099\101")local n=script.Parent.Parent.Parent local d=(n:WaitForChild("\076\111\098\098\121\070\114\097\109\101")):WaitForChild("\083\105\100\101\066\117\116\116\111\110\115")local F=(n:WaitForChild("\076\111\098\098\121\070\114\097\109\101")):WaitForChild("\083\104\111\112")local c=(n:WaitForChild("\076\111\098\098\121\070\114\097\109\101")):WaitForChild("\065\099\104\105\101\118\101\109\101\110\116\115")local v=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\082\101\112\108\105\099\097\068\097\116\097\077\111\100\117\108\101"))local U=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\065\099\104\105\101\118\101\109\101\110\116\115"))local B=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\067\108\105\101\110\116\077\111\100\117\108\101\115")):WaitForChild("\071\101\116\080\114\111\100\117\099\116\080\114\105\099\101"))local W=require((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\080\114\111\100\117\099\116\115"))while true do wait(.5)if n.LobbyFrame.WarningScreen.Visible==false then break end end d.Visible=true d:TweenPosition(UDim2.new(0,0,.5,50),"\079\117\116","\081\117\097\100",1,true)local o=w.GamepadEnabled function update()if o then if F.Visible then P.SelectedObject=F.Frame.Products.Boost elseif c.Visible then P.SelectedObject=c.Frame else P.SelectedObject=nil end else P.SelectedObject=nil end if c.Visible then return end if F.Visible then if v.data then if v.data.PaidInKnobs then if 2400<=v.data.PaidInKnobs then F.Frame.Products.Frame[1].Visible=false F.Frame.Products.Frame[2].Visible=false F.Frame.Products.Frame[3].Visible=false F.Frame.Products.Frame[4].Visible=false F.Frame.Products.Frame[5].Visible=true F.Frame.Products.Frame[6].Visible=true F.Frame.Products.Frame[7].Visible=true F.Frame.Products.Frame.Back.Visible=true end end end end end d.ButtonShop.MouseButton1Down:Connect(function()F.Visible=not F.Visible c.Visible=false update()end)d.ButtonAchievements.MouseButton1Down:Connect(function()c.Visible=not c.Visible F.Visible=false update()end)F.CloseButton.MouseButton1Down:Connect(function()F.Visible=false update()end);(F:WaitForChild("\067\111\100\101")).Confirm.MouseButton1Down:Connect(function()game.ReplicatedStorage.Bricks.ShopCode:FireServer(F.Code.Text)end);(F:WaitForChild("\067\111\100\101")).ReturnPressedFromOnScreenKeyboard:Connect(function()game.ReplicatedStorage.Bricks.ShopCode:FireServer(F.Code.Text)end);(F:WaitForChild("\067\111\100\101")).FocusLost:Connect(function()game.ReplicatedStorage.Bricks.ShopCode:FireServer(F.Code.Text)end)c.CloseButton.MouseButton1Down:Connect(function()c.Visible=false update()end)for K,C in F()do if C:IsA("\084\101\120\116\066\117\116\116\111\110")then if C:GetAttribute("\080\114\111\100\117\099\116\073\068")~=nil and(C.Visible or C:GetAttribute("\068\111\065\110\121\119\097\121"))then C.Price.Text=B(C:GetAttribute("\080\114\111\100\117\099\116\073\068"))C.MouseButton1Down:Connect(function()M:PromptProductPurchase(D,C:GetAttribute("\080\114\111\100\117\099\116\073\068"))end)elseif C:GetAttribute("\066\117\121\080\114\101\109\105\117\109")then C.MouseButton1Down:Connect(function()M:PromptPremiumPurchase(D)end)pcall(function()if D.MembershipType==Enum.MembershipType.Premium then C.Visible=false end end)elseif C:GetAttribute("\071\111\066\097\099\107")then F.Frame.Products.Frame[1].Visible=true F.Frame.Products.Frame[2].Visible=true F.Frame.Products.Frame[3].Visible=true F.Frame.Products.Frame[4].Visible=true F.Frame.Products.Frame[5].Visible=false F.Frame.Products.Frame[6].Visible=false F.Frame.Products.Frame[7].Visible=false F.Frame.Products.Frame.Back.Visible=false end end end w.InputBegan:Connect(function(K,D)if D then return end if K.KeyCode==Enum.KeyCode.ButtonB then F.Visible=false c.Visible=false update()return end if K.KeyCode==Enum.KeyCode.ButtonX then if not P.SelectedObject then P.SelectedObject=d.ButtonShop return end else return end F.Visible=false c.Visible=false P.SelectedObject=nil end)local function r()o=w.GamepadEnabled for K,D in pairs((game:GetService("\067\111\108\108\101\099\116\105\111\110\083\101\114\118\105\099\101")):GetTagged("\088\066\111\120"))do D.Visible=o end end w.GamepadConnected:Connect(r)w.GamepadDisconnected:Connect(r)o=w.GamepadEnabled for K,D in pairs((game:GetService("\067\111\108\108\101\099\116\105\111\110\083\101\114\118\105\099\101")):GetTagged("\088\066\111\120"))do D.Visible=o end while true do wait(1)if v.data then break end end for K,D in pairs(c.List:GetChildren())do if D:IsA("\073\109\097\103\101\066\117\116\116\111\110")and D.Visible then D:Destroy()end end if v.data then local K,D,C=pairs(U)while true do local s,N=K(D,C)if not s then break end local w=N:GetInfo()local P=c.List.Badge:Clone()for K,D in pairs(w)do P:SetAttribute(K,D)end P.Image=w.Image P.Name="\065\099\104\105\101\118\101\109\101\110\116"..w.Name P.Parent=c.List P.LayoutOrder=1000+w.Category P.Visible=true if table.find(v.data.Achievements,w.Name)then P.ImageColor3=Color3.new(1,1,1)P.ImageTransparency=0 P.LayoutOrder=P.LayoutOrder-1000 P.UIStroke.Enabled=false w.Hidden=-1 end local function M()c.Frame.Title.Text=w.Hidden<3 and w.Title or"\076\111\099\107\101\100 \065\099\104\105\101\118\101\109\101\110\116"c.Frame.Desc.Text=w.Hidden<2 and w.Desc or"\085\110\108\111\099\107 \116\104\105\115 \097\099\104\105\101\118\101\109\101\110\116 \116\111 \118\105\101\119 \105\116\115 \100\101\115\099\114\105\112\116\105\111\110\033"c.Frame.Reason.Text=w.Hidden<1 and w.Reason or""c.Frame.ImageLabel.Image=w.Image c.Frame.Visible=true end P.MouseButton1Down:Connect(M)P.SelectionGained:Connect(M)end end
-- Decompiled with the Synapse X Luau decompiler.

local v1 = script:FindFirstAncestor("MainUI")
local l__LocalPlayer__2 = game.Players.LocalPlayer
local v3 = require(script.Parent)
local v4 = game["Run Service"]
local l__TweenService__5 = game:GetService("TweenService")
local l__UserInputService__6 = game:GetService("UserInputService")
local l__GuiService__7 = game:GetService("GuiService")
local l__MarketplaceService__8 = game:GetService("MarketplaceService")
local l__Parent__9 = script.Parent.Parent.Parent
local l__SideButtons__10 = l__Parent__9:WaitForChild("LobbyFrame"):WaitForChild("SideButtons")
local l__Shop__11 = l__Parent__9:WaitForChild("LobbyFrame"):WaitForChild("Shop")
local l__Achievements__12 = l__Parent__9:WaitForChild("LobbyFrame"):WaitForChild("Achievements")
local v13 = require(game:GetService("ReplicatedStorage"):WaitForChild("ReplicaDataModule"))
local v14 = require(game:GetService("ReplicatedStorage"):WaitForChild("Achievements"))
local v15 = require(game:GetService("ReplicatedStorage"):WaitForChild("ClientModules"):WaitForChild("GetProductPrice"))
local v16 = require(game:GetService("ReplicatedStorage"):WaitForChild("Products"))
while true do
	wait(0.5)
	if l__Parent__9.LobbyFrame.WarningScreen.Visible == false then
		break
	end
end
l__SideButtons__10.Visible = true
l__SideButtons__10:TweenPosition(UDim2.new(0, 0, 0.5, 50), "Out", "Quad", 1, true)
local u1 = l__UserInputService__6.GamepadEnabled
function update()
	if u1 then
		if l__Shop__11.Visible then
			l__GuiService__7.SelectedObject = l__Shop__11.Frame.Products.Boost
		elseif l__Achievements__12.Visible then
			l__GuiService__7.SelectedObject = l__Achievements__12.Frame
		else
			l__GuiService__7.SelectedObject = nil
		end
	else
		l__GuiService__7.SelectedObject = nil
	end
	if l__Achievements__12.Visible then
		return
	end
	if l__Shop__11.Visible then
		if v13.data then
			if v13.data.PaidInKnobs then
				if 2400 <= v13.data.PaidInKnobs then
					l__Shop__11.Frame.Products.Frame[1].Visible = false
					l__Shop__11.Frame.Products.Frame[2].Visible = false
					l__Shop__11.Frame.Products.Frame[3].Visible = false
					l__Shop__11.Frame.Products.Frame[4].Visible = false
					l__Shop__11.Frame.Products.Frame[5].Visible = true
					l__Shop__11.Frame.Products.Frame[6].Visible = true
					l__Shop__11.Frame.Products.Frame[7].Visible = true
					l__Shop__11.Frame.Products.Frame.Back.Visible = true
				end
			end
		end
	end
end
l__SideButtons__10.ButtonShop.MouseButton1Down:Connect(function()
	l__Shop__11.Visible = not l__Shop__11.Visible
	l__Achievements__12.Visible = false
	update()
end)
l__SideButtons__10.ButtonAchievements.MouseButton1Down:Connect(function()
	l__Achievements__12.Visible = not l__Achievements__12.Visible
	l__Shop__11.Visible = false
	update()
end)
l__Shop__11.CloseButton.MouseButton1Down:Connect(function()
	l__Shop__11.Visible = false
	update()
end)
l__Shop__11:WaitForChild("Code").Confirm.MouseButton1Down:Connect(function()
	game.ReplicatedStorage.Bricks.ShopCode:FireServer(l__Shop__11.Code.Text)
end)
l__Shop__11:WaitForChild("Code").ReturnPressedFromOnScreenKeyboard:Connect(function()
	game.ReplicatedStorage.Bricks.ShopCode:FireServer(l__Shop__11.Code.Text)
end)
l__Shop__11:WaitForChild("Code").FocusLost:Connect(function()
	game.ReplicatedStorage.Bricks.ShopCode:FireServer(l__Shop__11.Code.Text)
end)
l__Achievements__12.CloseButton.MouseButton1Down:Connect(function()
	l__Achievements__12.Visible = false
	update()
end)
for v17, v18 in l__Shop__11() do
	if v18:IsA("TextButton") then
		if v18:GetAttribute("ProductID") ~= nil and (v18.Visible or v18:GetAttribute("DoAnyway")) then
			v18.Price.Text = v15(v18:GetAttribute("ProductID"))
			v18.MouseButton1Down:Connect(function()
				l__MarketplaceService__8:PromptProductPurchase(l__LocalPlayer__2, v18:GetAttribute("ProductID"))
			end)
		elseif v18:GetAttribute("BuyPremium") then
			v18.MouseButton1Down:Connect(function()
				l__MarketplaceService__8:PromptPremiumPurchase(l__LocalPlayer__2)
			end)
			pcall(function()
				if l__LocalPlayer__2.MembershipType == Enum.MembershipType.Premium then
					v18.Visible = false
				end
			end)
		elseif v18:GetAttribute("GoBack") then
			l__Shop__11.Frame.Products.Frame[1].Visible = true
			l__Shop__11.Frame.Products.Frame[2].Visible = true
			l__Shop__11.Frame.Products.Frame[3].Visible = true
			l__Shop__11.Frame.Products.Frame[4].Visible = true
			l__Shop__11.Frame.Products.Frame[5].Visible = false
			l__Shop__11.Frame.Products.Frame[6].Visible = false
			l__Shop__11.Frame.Products.Frame[7].Visible = false
			l__Shop__11.Frame.Products.Frame.Back.Visible = false
		end
	end
end
l__UserInputService__6.InputBegan:Connect(function(p1, p2)
	if p2 then
		return
	end
	if p1.KeyCode == Enum.KeyCode.ButtonB then
		l__Shop__11.Visible = false
		l__Achievements__12.Visible = false
		update()
		return
	end
	if p1.KeyCode == Enum.KeyCode.ButtonX then
		if not l__GuiService__7.SelectedObject then
			l__GuiService__7.SelectedObject = l__SideButtons__10.ButtonShop
			return
		end
	else
		return
	end
	l__Shop__11.Visible = false
	l__Achievements__12.Visible = false
	l__GuiService__7.SelectedObject = nil
end)
local function v19()
	u1 = l__UserInputService__6.GamepadEnabled
	for v20, v21 in pairs(game:GetService("CollectionService"):GetTagged("XBox")) do
		v21.Visible = u1
	end
end
l__UserInputService__6.GamepadConnected:Connect(v19)
l__UserInputService__6.GamepadDisconnected:Connect(v19)
u1 = l__UserInputService__6.GamepadEnabled
for v22, v23 in pairs(game:GetService("CollectionService"):GetTagged("XBox")) do
	v23.Visible = u1
end
while true do
	wait(1)
	if v13.data then
		break
	end
end
for v24, v25 in pairs(l__Achievements__12.List:GetChildren()) do
	if v25:IsA("ImageButton") and v25.Visible then
		v25:Destroy()
	end
end
if v13.data then
	local v26, v27, v28 = pairs(v14)
	while true do
		local v29, v30 = v26(v27, v28)
		if not v29 then
			break
		end
		local v31 = v30:GetInfo()
		local v32 = l__Achievements__12.List.Badge:Clone()
		for v33, v34 in pairs(v31) do
			v32:SetAttribute(v33, v34)
		end
		v32.Image = v31.Image
		v32.Name = "Achievement" .. v31.Name
		v32.Parent = l__Achievements__12.List
		v32.LayoutOrder = 1000 + v31.Category
		v32.Visible = true
		if table.find(v13.data.Achievements, v31.Name) then
			v32.ImageColor3 = Color3.new(1, 1, 1)
			v32.ImageTransparency = 0
			v32.LayoutOrder = v32.LayoutOrder - 1000
			v32.UIStroke.Enabled = false
			v31.Hidden = -1
		end
		local function v35()
			l__Achievements__12.Frame.Title.Text = v31.Hidden < 3 and v31.Title or "Locked Achievement"
			l__Achievements__12.Frame.Desc.Text = v31.Hidden < 2 and v31.Desc
				or "Unlock this achievement to view its description!"
			l__Achievements__12.Frame.Reason.Text = v31.Hidden < 1 and v31.Reason or ""
			l__Achievements__12.Frame.ImageLabel.Image = v31.Image
			l__Achievements__12.Frame.Visible = true
		end
		v32.MouseButton1Down:Connect(v35)
		v32.SelectionGained:Connect(v35)
	end
end
