Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Decompiled with the Synapse X Luau decompiler.
- local v1 = require(game.ReplicatedStorage:WaitForChild("Framework"):WaitForChild("Library"));
- while not v1.Loaded do
- game:GetService("RunService").Heartbeat:Wait();
- end;
- local l__Teleport__2 = v1.GUI.Main.Left.Tools:FindFirstChild("Teleport");
- local v3 = {};
- local v4 = {};
- for v5, v6 in pairs(v1.Directory.Areas) do
- if not v6.hidden then
- table.insert(v3, v5);
- end;
- end;
- table.sort(v3, function(p1, p2)
- local v7 = v1.Directory.Areas[p1];
- local v8 = v1.Directory.Areas[p2];
- local v9 = v1.Directory.Worlds[v7.world];
- local v10 = v1.Directory.Worlds[v8.world];
- local v11 = v1.Shared.Currency[v9.mainCurrency];
- local v12 = v1.Shared.Currency[v10.mainCurrency];
- if v9.worldOrder ~= v10.worldOrder then
- return v9.worldOrder < v10.worldOrder;
- end;
- if v11.order ~= v12.order then
- return v11.order < v12.order;
- end;
- if v7.isShop ~= v8.isShop then
- return v7.isShop;
- end;
- if not v7.gate or not v8.gate then
- return v7.mult < v8.mult;
- end;
- return v7.gate.cost < v8.gate.cost;
- end);
- local v13, v14, v15 = ipairs(v3);
- while true do
- v13(v14, v15);
- if not v13 then
- break;
- end;
- v15 = v13;
- local l__world__16 = v1.Directory.Areas[v14].world;
- if not table.find(v4, l__world__16) then
- table.insert(v4, l__world__16);
- end;
- end;
- function GetTeleportIcon(p3)
- return ({
- MachineUpgrade = "rbxassetid://12520076522",
- MachineFuse = "rbxassetid://12520076797",
- MachineRainbow = "rbxassetid://12520076664",
- MachineEnchant = "rbxassetid://12520076963",
- MachineDarkMatter = "rbxassetid://12520077127",
- MachineServerBoosts = "rbxassetid://12523969236",
- Chest = "rbxassetid://12520085862",
- Teleport = "rbxassetid://12520085508"
- })[p3];
- end;
- function ActuallyTeleport(p4, p5)
- if not v1.WorldCmds.CanDoAction() then
- return false, "Cannot perform actions right now";
- end;
- if not v1.FFlags.Get(v1.FFlags.Keys.Teleporting) then
- if not v1.FFlags.CanBypass() then
- return false, "Sorry this is disabled right now! Try back soon!";
- end;
- end;
- local v17 = v1.Directory.Areas[p4];
- if not v17 then
- return false, "Unknown area!";
- end;
- if not p5 then
- if not v1.WorldCmds.HasAccess(v17.world) then
- return false, "You do not have access to this world!";
- end;
- end;
- if not p5 then
- if not v1.WorldCmds.HasArea(p4) then
- return false, "You do not have access to this area!";
- end;
- end;
- if not p5 then
- if not v1.WorldCmds.HasTeleport(p4) then
- return false, "You do not own the teleport to this area!";
- end;
- end;
- if v1.WorldCmds.Get() ~= v17.world then
- if not v1.WorldCmds.Load(v17.world) then
- return false, "World failed to load!";
- end;
- end;
- local v18 = v1.WorldCmds.GetMap().Teleports:FindFirstChild(p4);
- if not v18 then
- return false, "No such teleport for area!";
- end;
- assert(v18);
- local l__LocalPlayer__19 = v1.LocalPlayer;
- local v20 = l__LocalPlayer__19.Character or l__LocalPlayer__19.CharacterAdded:Wait();
- local l__Humanoid__21 = v20:WaitForChild("Humanoid");
- local l__HumanoidRootPart__22 = v20:WaitForChild("HumanoidRootPart");
- v1.Signal.Fire("Teleporting");
- task.wait(0.25);
- local l__CFrame__23 = v18.CFrame;
- v20:PivotTo(l__CFrame__23 + l__CFrame__23.UpVector * (l__Humanoid__21.HipHeight + l__HumanoidRootPart__22.Size.Y / 2));
- v1.Audio.Play("rbxassetid://7009904957", script, 1, 0.4);
- v1.Network.Fire("Performed Teleport", p4);
- task.wait(0.25);
- return true;
- end;
- function Teleport(p6, p7)
- v1.Asserts.string(p6);
- assert(v1.Directory.Areas[p6]);
- if v1.Variables.Teleporting then
- return false, "You are already teleporting!";
- end;
- v1.Variables.Teleporting = true;
- local v24, v25 = ActuallyTeleport(p6, p7);
- v1.Variables.Teleporting = false;
- return v24, v25;
- end;
- v1.Network.Invoked("Force Teleport").OnInvoke = function(p8)
- return Teleport(p8, true);
- end;
- function Purchase(p9)
- if not v1.Message.New("It costs " .. v1.Functions.Commas(v1.Directory.Areas[p9].teleportPrice) .. " Diamonds to unlock this teleport. Are you sure?", true) then
- return;
- end;
- local v26, v27 = v1.Network.Invoke("Buy Teleport Area", p9);
- if not v26 then
- else
- v1.Audio.Play("rbxassetid://7255664014", script);
- return;
- end;
- v1.Message.New(v27 and "An error occurred.");
- end;
- function Clicked(p10)
- if v1.WorldCmds.HasTeleport(p10) then
- local v28, v29 = Teleport(p10);
- if not v28 then
- else
- return;
- end;
- else
- Purchase(p10);
- return;
- end;
- v1.Message.New(v29 and "An error occurred.");
- end;
- local u1 = "Spawn";
- local l__Teleport__2 = v1.GUI.Teleport;
- function ClickedWorld(p11)
- if u1 ~= p11 then
- u1 = p11;
- if u1 ~= "Hardcore" then
- if u1 ~= "Normal" then
- if u1 == "Trading Plaza" then
- local v30 = u1 .. " Teleports";
- else
- v30 = v1.Directory.Worlds[u1].display;
- end;
- else
- v30 = u1 .. " Teleports";
- end;
- else
- v30 = u1 .. " Teleports";
- end;
- l__Teleport__2.Gui.Frame.RightContainer.Holder.Category.Text = "~ " .. v30 .. " ~";
- UpdateAreas();
- l__Teleport__2.RightContainer.Holder.CanvasPosition = Vector2.new(0, 0);
- end;
- end;
- function RealmClicked(p12)
- if p12 == "Hardcore" then
- v1.Variables.LoadingWorld = true;
- local v31, v32 = v1.Network.Invoke("Toggle Hardcore Mode");
- if v31 then
- v1.GUIFX.Loading("Hardcore Mode");
- return;
- else
- v1.Variables.LoadingWorld = false;
- v1.Message.New(v32 and "Something went wrong.");
- return;
- end;
- end;
- if p12 == "Normal" then
- else
- if p12 == "Trading Plaza" then
- local u3 = false;
- pcall(function()
- u3 = v1.VoiceChatService:IsVoiceEnabledForUserIdAsync(v1.LocalPlayer.UserId);
- end);
- v1.Signal.Fire("Show Trading Plaza Choice", u3);
- end;
- return;
- end;
- v1.Variables.LoadingWorld = true;
- local v33, v34 = v1.Network.Invoke("Toggle Hardcore Mode");
- if v33 then
- v1.GUIFX.Loading("Normal Mode");
- return;
- end;
- v1.Variables.LoadingWorld = false;
- v1.Message.New(v34 and "Something went wrong.");
- end;
- local u4 = false;
- local u5 = false;
- local l__IsHardcore__6 = v1.Shared.IsHardcore;
- local l__ID__7 = v1.Directory.Gamepasses.VIP.ID;
- function Setup()
- if v1.Shared.IsTradingPlaza then
- if not l__Teleport__2.Holder:FindFirstChild("TeleportsDisabled") then
- script.TeleportsDisabled:Clone().Parent = l__Teleport__2.Frame;
- l__Teleport__2.LeftContainer.Visible = false;
- l__Teleport__2.RightContainer.Visible = false;
- l__Teleport__2.UnlockAll.Visible = false;
- end;
- return;
- end;
- local v35 = v1.Save.Get();
- if not v35 then
- return;
- end;
- assert(v35);
- l__Teleport__2.Gui.Frame.RightContainer.Holder.Category.Text = "~ " .. v1.Directory.Worlds[u1].display .. " ~";
- local l__Holder__36 = l__Teleport__2.Gui.Frame.LeftContainer.Holder;
- local l__WorldTemplate__37 = l__Holder__36.WorldTemplate;
- local v38 = 1;
- if not u4 then
- local v39, v40, v41 = ipairs(v4);
- while true do
- v39(v40, v41);
- if v39 then
- else
- break;
- end;
- v41 = v39;
- if v40 ~= "Diamond Mine" then
- local v42 = v1.Directory.Worlds[v40];
- if not l__Holder__36:FindFirstChild(v40) then
- local v43 = l__WorldTemplate__37:Clone();
- v43.ImageLabel.Image = v42.teleportImage and "rbxassetid://12405479224";
- v43.Visible = true;
- v43.Parent = l__Holder__36;
- v43.Name = v40;
- v43.Title.Text = v42.display;
- v43.LayoutOrder = v38;
- v38 = v38 + 1;
- v1.GUIFX.ButtonFX(v43);
- v43.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld(v40);
- u5 = false;
- end;
- end);
- end;
- u4 = true;
- end;
- end;
- l__Holder__36.CategoryRealms.LayoutOrder = v38;
- v38 = v38 + 1;
- end;
- if not l__Holder__36:FindFirstChild("Diamond Mine") then
- local v44 = l__WorldTemplate__37:Clone();
- v44.Parent = l__Holder__36;
- v44.Visible = true;
- v44.Name = "Diamond Mine";
- v44.Title.Text = "Diamond Mine";
- v44.ImageLabel.Image = v1.Directory.Worlds["Diamond Mine"].teleportImage and "rbxassetid://12405479224";
- v44.LayoutOrder = v38;
- v1.GUIFX.ButtonFX(v44);
- v44.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Diamond Mine");
- u5 = false;
- end;
- end);
- v38 = v38 + 1;
- end;
- if v35.HardcoreUnlocked then
- if not l__IsHardcore__6 then
- if not l__Holder__36:FindFirstChild("Hardcore") then
- local v45 = l__WorldTemplate__37:Clone();
- v45.Parent = l__Holder__36;
- v45.Visible = true;
- v45.Name = "Hardcore";
- v45.Title.Text = "Hardcore Mode";
- v45.LayoutOrder = v38;
- v45.ImageLabel.Image = "rbxassetid://12447471006";
- v1.GUIFX.ButtonFX(v45);
- v45.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Hardcore");
- u5 = false;
- end;
- end);
- v38 = v38 + 1;
- end;
- elseif l__IsHardcore__6 then
- if not l__Holder__36:FindFirstChild("Normal") then
- local v46 = l__WorldTemplate__37:Clone();
- v46.Parent = l__Holder__36;
- v46.Visible = true;
- v46.Name = "Normal";
- v46.Title.Text = "Normal Mode";
- v46.LayoutOrder = v38;
- v46.ImageLabel.Image = "rbxassetid://12447471006";
- v1.GUIFX.ButtonFX(v46);
- v46.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Normal");
- u5 = false;
- end;
- end);
- v38 = v38 + 1;
- end;
- end;
- elseif l__IsHardcore__6 then
- if not l__Holder__36:FindFirstChild("Normal") then
- v46 = l__WorldTemplate__37:Clone();
- v46.Parent = l__Holder__36;
- v46.Visible = true;
- v46.Name = "Normal";
- v46.Title.Text = "Normal Mode";
- v46.LayoutOrder = v38;
- v46.ImageLabel.Image = "rbxassetid://12447471006";
- v1.GUIFX.ButtonFX(v46);
- v46.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Normal");
- u5 = false;
- end;
- end);
- v38 = v38 + 1;
- end;
- end;
- if v35.OwnsTradingPlaza then
- if not l__Holder__36:FindFirstChild("Trading Plaza") then
- local v47 = l__WorldTemplate__37:Clone();
- v47.Parent = l__Holder__36;
- v47.Visible = true;
- v47.Name = "Trading Plaza";
- v47.Title.Text = "Trading Plaza";
- v47.LayoutOrder = v38;
- v47.ImageLabel.Image = "rbxassetid://12447471127";
- v1.GUIFX.ButtonFX(v47);
- v47.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Trading Plaza");
- u5 = false;
- end;
- end);
- end;
- end;
- Scrolling(l__Teleport__2.Gui.Frame.LeftContainer.Holder);
- local l__Holder__48 = l__Teleport__2.Gui.Frame.RightContainer.Holder;
- local v49, v50, v51 = ipairs(l__Holder__48:GetChildren());
- while true do
- v49(v50, v51);
- if v49 then
- else
- break;
- end;
- v51 = v49;
- if v50:GetAttribute("World") then
- if v50:GetAttribute("World") ~= u1 then
- v50:Destroy();
- end;
- end;
- end;
- local l__AreaTemplate__52 = l__Holder__48.AreaTemplate;
- local v53 = 1;
- if u1 ~= "Hardcore" then
- if u1 ~= "Trading Plaza" then
- local v54, v55, v56 = ipairs(v3);
- while true do
- v54(v55, v56);
- if v54 then
- else
- break;
- end;
- v56 = v54;
- local v57 = v1.Directory.Areas[v55];
- if v57.world == u1 then
- if v55 == "VIP" then
- if v1.Gamepasses.Owns(l__ID__7) then
- local v58 = l__Holder__48:FindFirstChild(v55);
- if not v58 then
- v58 = v1.Assets.UI.Teleport.Area:Clone();
- v58.LayoutOrder = v53;
- if v55 == "Easter" then
- v58.LayoutOrder = 0;
- end;
- v53 = v53 + 1;
- v58.Name = v55;
- v58.Parent = l__Holder__48;
- v58:SetAttribute("World", v57.world);
- v1.GUIFX.ButtonFX(v58);
- v58.Activated:Connect(function()
- if not u5 then
- if v1.WorldCmds.HasArea(v55) then
- u5 = true;
- Clicked(v55);
- u5 = false;
- end;
- end;
- end);
- end;
- local v59 = v1.WorldCmds.HasArea(v55);
- local v60 = v1.WorldCmds.HasTeleport(v55);
- local v61 = GetTeleportIcon(v57.tpIcon);
- if not v61 then
- if v57.isShop then
- v61 = "rbxassetid://7255478767";
- else
- v61 = "rbxassetid://6708234702";
- end;
- end;
- v58.ImageColor3 = v59 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v58.Title.Text = v59 and v57.name or "???";
- if v59 then
- if not v60 then
- local v62 = "rbxassetid://7045637286";
- else
- v62 = "rbxassetid://6869680115";
- end;
- else
- v62 = "rbxassetid://6869680115";
- end;
- v58.Image = v62;
- if v59 then
- if not v60 then
- local v63 = "rbxassetid://7045637411";
- else
- v63 = "rbxassetid://6903539993";
- end;
- else
- v63 = "rbxassetid://6903539993";
- end;
- v58.HoverImage = v63;
- if not v59 then
- v58.Icon.Image = "rbxassetid://7255478600";
- elseif not v60 then
- v58.Icon.Image = "rbxassetid://7255478657";
- elseif v60 then
- if v59 then
- v58.Icon.Image = v61;
- end;
- end;
- end;
- else
- v58 = l__Holder__48:FindFirstChild(v55);
- if not v58 then
- v58 = v1.Assets.UI.Teleport.Area:Clone();
- v58.LayoutOrder = v53;
- if v55 == "Easter" then
- v58.LayoutOrder = 0;
- end;
- v53 = v53 + 1;
- v58.Name = v55;
- v58.Parent = l__Holder__48;
- v58:SetAttribute("World", v57.world);
- v1.GUIFX.ButtonFX(v58);
- v58.Activated:Connect(function()
- if not u5 then
- if v1.WorldCmds.HasArea(v55) then
- u5 = true;
- Clicked(v55);
- u5 = false;
- end;
- end;
- end);
- end;
- v59 = v1.WorldCmds.HasArea(v55);
- v60 = v1.WorldCmds.HasTeleport(v55);
- v61 = GetTeleportIcon(v57.tpIcon);
- if not v61 then
- if v57.isShop then
- v61 = "rbxassetid://7255478767";
- else
- v61 = "rbxassetid://6708234702";
- end;
- end;
- v58.ImageColor3 = v59 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v58.Title.Text = v59 and v57.name or "???";
- if v59 then
- if not v60 then
- v62 = "rbxassetid://7045637286";
- else
- v62 = "rbxassetid://6869680115";
- end;
- else
- v62 = "rbxassetid://6869680115";
- end;
- v58.Image = v62;
- if v59 then
- if not v60 then
- v63 = "rbxassetid://7045637411";
- else
- v63 = "rbxassetid://6903539993";
- end;
- else
- v63 = "rbxassetid://6903539993";
- end;
- v58.HoverImage = v63;
- if not v59 then
- v58.Icon.Image = "rbxassetid://7255478600";
- elseif not v60 then
- v58.Icon.Image = "rbxassetid://7255478657";
- elseif v60 then
- if v59 then
- v58.Icon.Image = v61;
- end;
- end;
- end;
- end;
- end;
- else
- local v64 = l__Holder__48:FindFirstChild(u1);
- if not v64 then
- v64 = v1.Assets.UI.Teleport.Area:Clone();
- v64.LayoutOrder = v53;
- v64.Name = u1;
- v64.Parent = l__Holder__48;
- v64:SetAttribute("World", u1);
- v1.GUIFX.ButtonFX(v64);
- v64.Activated:Connect(function()
- if not u5 then
- u5 = true;
- RealmClicked(u1);
- u5 = false;
- end;
- end);
- end;
- local v65 = u1 == "Hardcore" and v35.HardcoreUnlocked or v35.OwnsTradingPlaza;
- local v66 = u1 == "Hardcore" and v35.HardcoreUnlocked or v35.OwnsTradingPlaza;
- v64.ImageColor3 = v65 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v64.Title.Text = u1;
- if v65 then
- if not v66 then
- local v67 = "rbxassetid://7045637286";
- else
- v67 = "rbxassetid://6869680115";
- end;
- else
- v67 = "rbxassetid://6869680115";
- end;
- v64.Image = v67;
- if v65 then
- if not v66 then
- local v68 = "rbxassetid://7045637411";
- else
- v68 = "rbxassetid://6903539993";
- end;
- else
- v68 = "rbxassetid://6903539993";
- end;
- v64.HoverImage = v68;
- if not v65 then
- v64.Icon.Image = "rbxassetid://7255478600";
- elseif not v66 then
- v64.Icon.Image = "rbxassetid://7255478657";
- elseif v66 then
- if v65 then
- v64.Icon.Image = "rbxassetid://6708234702";
- end;
- end;
- end;
- else
- v64 = l__Holder__48:FindFirstChild(u1);
- if not v64 then
- v64 = v1.Assets.UI.Teleport.Area:Clone();
- v64.LayoutOrder = v53;
- v64.Name = u1;
- v64.Parent = l__Holder__48;
- v64:SetAttribute("World", u1);
- v1.GUIFX.ButtonFX(v64);
- v64.Activated:Connect(function()
- if not u5 then
- u5 = true;
- RealmClicked(u1);
- u5 = false;
- end;
- end);
- end;
- v65 = u1 == "Hardcore" and v35.HardcoreUnlocked or v35.OwnsTradingPlaza;
- v66 = u1 == "Hardcore" and v35.HardcoreUnlocked or v35.OwnsTradingPlaza;
- v64.ImageColor3 = v65 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v64.Title.Text = u1;
- if v65 then
- if not v66 then
- v67 = "rbxassetid://7045637286";
- else
- v67 = "rbxassetid://6869680115";
- end;
- else
- v67 = "rbxassetid://6869680115";
- end;
- v64.Image = v67;
- if v65 then
- if not v66 then
- v68 = "rbxassetid://7045637411";
- else
- v68 = "rbxassetid://6903539993";
- end;
- else
- v68 = "rbxassetid://6903539993";
- end;
- v64.HoverImage = v68;
- if not v65 then
- v64.Icon.Image = "rbxassetid://7255478600";
- elseif not v66 then
- v64.Icon.Image = "rbxassetid://7255478657";
- elseif v66 then
- if v65 then
- v64.Icon.Image = "rbxassetid://6708234702";
- end;
- end;
- end;
- Scrolling(l__Holder__48);
- end;
- function UpdateRealms()
- local v69 = v1.Save.Get();
- if not v69 then
- return;
- end;
- assert(v69);
- local l__Holder__70 = l__Teleport__2.Gui.Frame.LeftContainer.Holder;
- local l__WorldTemplate__71 = l__Holder__70.WorldTemplate;
- if v69.HardcoreUnlocked then
- if not l__IsHardcore__6 then
- if not l__Holder__70:FindFirstChild("Hardcore") then
- local v72 = l__WorldTemplate__71:Clone();
- v72.Parent = l__Holder__70;
- v72.Visible = true;
- v72.Name = "Hardcore";
- v72.Title.Text = "Hardcore Mode";
- v72.ImageLabel.Image = "rbxassetid://12447471006";
- v72.LayoutOrder = #v4 + 2;
- v1.GUIFX.ButtonFX(v72);
- v72.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Hardcore");
- u5 = false;
- end;
- end);
- end;
- elseif l__IsHardcore__6 then
- if not l__Holder__70:FindFirstChild("Normal") then
- local v73 = l__WorldTemplate__71:Clone();
- v73.Parent = l__Holder__70;
- v73.Visible = true;
- v73.Name = "Normal";
- v73.Title.Text = "Normal Mode";
- v73.ImageLabel.Image = "rbxassetid://12447471006";
- v73.LayoutOrder = #v4 + 2;
- v1.GUIFX.ButtonFX(v73);
- v73.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Normal");
- u5 = false;
- end;
- end);
- end;
- end;
- elseif l__IsHardcore__6 then
- if not l__Holder__70:FindFirstChild("Normal") then
- v73 = l__WorldTemplate__71:Clone();
- v73.Parent = l__Holder__70;
- v73.Visible = true;
- v73.Name = "Normal";
- v73.Title.Text = "Normal Mode";
- v73.ImageLabel.Image = "rbxassetid://12447471006";
- v73.LayoutOrder = #v4 + 2;
- v1.GUIFX.ButtonFX(v73);
- v73.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Normal");
- u5 = false;
- end;
- end);
- end;
- end;
- if v69.OwnsTradingPlaza then
- if not l__Holder__70:FindFirstChild("Trading Plaza") then
- local v74 = l__WorldTemplate__71:Clone();
- v74.Parent = l__Holder__70;
- v74.Visible = true;
- v74.Name = "Trading Plaza";
- v74.Title.Text = "Trading Plaza";
- v74.ImageLabel.Image = "rbxassetid://12447471127";
- v74.LayoutOrder = #v4 + 3;
- v1.GUIFX.ButtonFX(v74);
- v74.Activated:Connect(function()
- if not u5 then
- u5 = true;
- ClickedWorld("Trading Plaza");
- u5 = false;
- end;
- end);
- end;
- end;
- end;
- function UpdateAreas()
- local v75 = v1.Save.Get();
- if not v75 then
- return;
- end;
- assert(v75);
- local l__Holder__76 = l__Teleport__2.Gui.Frame.RightContainer.Holder;
- local v77, v78, v79 = ipairs(l__Holder__76:GetChildren());
- while true do
- v77(v78, v79);
- if v77 then
- else
- break;
- end;
- v79 = v77;
- if v78:GetAttribute("World") then
- if v78:GetAttribute("World") ~= u1 then
- v78:Destroy();
- end;
- end;
- end;
- local l__AreaTemplate__80 = l__Holder__76.AreaTemplate;
- local v81 = 1;
- if u1 ~= "Hardcore" then
- if u1 ~= "Trading Plaza" then
- if u1 ~= "Normal" then
- local v82, v83, v84 = ipairs(v3);
- while true do
- v82(v83, v84);
- if v82 then
- else
- break;
- end;
- v84 = v82;
- local v85 = v1.Directory.Areas[v83];
- if v85.world == u1 then
- if v83 == "VIP" then
- if v1.Gamepasses.Owns(l__ID__7) then
- local v86 = l__Holder__76:FindFirstChild(v83);
- if not v86 then
- v86 = v1.Assets.UI.Teleport.Area:Clone();
- v86.LayoutOrder = v81;
- if v83 == "Easter" then
- v86.LayoutOrder = 0;
- end;
- v81 = v81 + 1;
- v86.Name = v83;
- v86.Parent = l__Holder__76;
- v86:SetAttribute("World", v85.world);
- v1.GUIFX.ButtonFX(v86);
- v86.Activated:Connect(function()
- if not u5 then
- if v1.WorldCmds.HasArea(v83) then
- u5 = true;
- Clicked(v83);
- u5 = false;
- end;
- end;
- end);
- end;
- local v87 = v1.WorldCmds.HasArea(v83);
- local v88 = v1.WorldCmds.HasTeleport(v83);
- local v89 = GetTeleportIcon(v85.tpIcon);
- if not v89 then
- if v85.isShop then
- v89 = "rbxassetid://7255478767";
- else
- v89 = "rbxassetid://6708234702";
- end;
- end;
- v86.ImageColor3 = v87 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v86.Title.Text = v87 and v85.name or "???";
- if v87 then
- if not v88 then
- local v90 = "rbxassetid://7045637286";
- else
- v90 = "rbxassetid://6869680115";
- end;
- else
- v90 = "rbxassetid://6869680115";
- end;
- v86.Image = v90;
- if v87 then
- if not v88 then
- local v91 = "rbxassetid://7045637411";
- else
- v91 = "rbxassetid://6903539993";
- end;
- else
- v91 = "rbxassetid://6903539993";
- end;
- v86.HoverImage = v91;
- if not v87 then
- v86.Icon.Image = "rbxassetid://7255478600";
- elseif not v88 then
- v86.Icon.Image = "rbxassetid://7255478657";
- elseif v88 then
- if v87 then
- v86.Icon.Image = v89;
- end;
- end;
- end;
- else
- v86 = l__Holder__76:FindFirstChild(v83);
- if not v86 then
- v86 = v1.Assets.UI.Teleport.Area:Clone();
- v86.LayoutOrder = v81;
- if v83 == "Easter" then
- v86.LayoutOrder = 0;
- end;
- v81 = v81 + 1;
- v86.Name = v83;
- v86.Parent = l__Holder__76;
- v86:SetAttribute("World", v85.world);
- v1.GUIFX.ButtonFX(v86);
- v86.Activated:Connect(function()
- if not u5 then
- if v1.WorldCmds.HasArea(v83) then
- u5 = true;
- Clicked(v83);
- u5 = false;
- end;
- end;
- end);
- end;
- v87 = v1.WorldCmds.HasArea(v83);
- v88 = v1.WorldCmds.HasTeleport(v83);
- v89 = GetTeleportIcon(v85.tpIcon);
- if not v89 then
- if v85.isShop then
- v89 = "rbxassetid://7255478767";
- else
- v89 = "rbxassetid://6708234702";
- end;
- end;
- v86.ImageColor3 = v87 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v86.Title.Text = v87 and v85.name or "???";
- if v87 then
- if not v88 then
- v90 = "rbxassetid://7045637286";
- else
- v90 = "rbxassetid://6869680115";
- end;
- else
- v90 = "rbxassetid://6869680115";
- end;
- v86.Image = v90;
- if v87 then
- if not v88 then
- v91 = "rbxassetid://7045637411";
- else
- v91 = "rbxassetid://6903539993";
- end;
- else
- v91 = "rbxassetid://6903539993";
- end;
- v86.HoverImage = v91;
- if not v87 then
- v86.Icon.Image = "rbxassetid://7255478600";
- elseif not v88 then
- v86.Icon.Image = "rbxassetid://7255478657";
- elseif v88 then
- if v87 then
- v86.Icon.Image = v89;
- end;
- end;
- end;
- end;
- end;
- else
- local v92 = l__Holder__76:FindFirstChild(u1);
- if not v92 then
- v92 = v1.Assets.UI.Teleport.Area:Clone();
- v92.LayoutOrder = v81;
- v92.Name = u1;
- v92.Parent = l__Holder__76;
- v92:SetAttribute("World", u1);
- v1.GUIFX.ButtonFX(v92);
- v92.Activated:Connect(function()
- if not u5 then
- u5 = true;
- RealmClicked(u1);
- u5 = false;
- end;
- end);
- end;
- local v93 = nil;
- local v94 = nil;
- if u1 ~= "Hardcore" then
- if u1 == "Normal" then
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- elseif u1 == "Trading Plaza" then
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- end;
- else
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- end;
- v92.ImageColor3 = v93 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v92.Title.Text = u1;
- if v93 then
- if not v94 then
- local v95 = "rbxassetid://7045637286";
- else
- v95 = "rbxassetid://6869680115";
- end;
- else
- v95 = "rbxassetid://6869680115";
- end;
- v92.Image = v95;
- if v93 then
- if not v94 then
- local v96 = "rbxassetid://7045637411";
- else
- v96 = "rbxassetid://6903539993";
- end;
- else
- v96 = "rbxassetid://6903539993";
- end;
- v92.HoverImage = v96;
- if not v93 then
- v92.Icon.Image = "rbxassetid://7255478600";
- elseif not v94 then
- v92.Icon.Image = "rbxassetid://7255478657";
- elseif v94 then
- if v93 then
- v92.Icon.Image = "rbxassetid://6708234702";
- end;
- end;
- end;
- else
- v92 = l__Holder__76:FindFirstChild(u1);
- if not v92 then
- v92 = v1.Assets.UI.Teleport.Area:Clone();
- v92.LayoutOrder = v81;
- v92.Name = u1;
- v92.Parent = l__Holder__76;
- v92:SetAttribute("World", u1);
- v1.GUIFX.ButtonFX(v92);
- v92.Activated:Connect(function()
- if not u5 then
- u5 = true;
- RealmClicked(u1);
- u5 = false;
- end;
- end);
- end;
- v93 = nil;
- v94 = nil;
- if u1 ~= "Hardcore" then
- if u1 == "Normal" then
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- elseif u1 == "Trading Plaza" then
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- end;
- else
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- end;
- v92.ImageColor3 = v93 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v92.Title.Text = u1;
- if v93 then
- if not v94 then
- v95 = "rbxassetid://7045637286";
- else
- v95 = "rbxassetid://6869680115";
- end;
- else
- v95 = "rbxassetid://6869680115";
- end;
- v92.Image = v95;
- if v93 then
- if not v94 then
- v96 = "rbxassetid://7045637411";
- else
- v96 = "rbxassetid://6903539993";
- end;
- else
- v96 = "rbxassetid://6903539993";
- end;
- v92.HoverImage = v96;
- if not v93 then
- v92.Icon.Image = "rbxassetid://7255478600";
- elseif not v94 then
- v92.Icon.Image = "rbxassetid://7255478657";
- elseif v94 then
- if v93 then
- v92.Icon.Image = "rbxassetid://6708234702";
- end;
- end;
- end;
- else
- v92 = l__Holder__76:FindFirstChild(u1);
- if not v92 then
- v92 = v1.Assets.UI.Teleport.Area:Clone();
- v92.LayoutOrder = v81;
- v92.Name = u1;
- v92.Parent = l__Holder__76;
- v92:SetAttribute("World", u1);
- v1.GUIFX.ButtonFX(v92);
- v92.Activated:Connect(function()
- if not u5 then
- u5 = true;
- RealmClicked(u1);
- u5 = false;
- end;
- end);
- end;
- v93 = nil;
- v94 = nil;
- if u1 ~= "Hardcore" then
- if u1 == "Normal" then
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- elseif u1 == "Trading Plaza" then
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- end;
- else
- v93 = v75.HardcoreUnlocked;
- v94 = v75.HardcoreUnlocked;
- end;
- v92.ImageColor3 = v93 and Color3.new(1, 1, 1) or Color3.fromRGB(120, 120, 120);
- v92.Title.Text = u1;
- if v93 then
- if not v94 then
- v95 = "rbxassetid://7045637286";
- else
- v95 = "rbxassetid://6869680115";
- end;
- else
- v95 = "rbxassetid://6869680115";
- end;
- v92.Image = v95;
- if v93 then
- if not v94 then
- v96 = "rbxassetid://7045637411";
- else
- v96 = "rbxassetid://6903539993";
- end;
- else
- v96 = "rbxassetid://6903539993";
- end;
- v92.HoverImage = v96;
- if not v93 then
- v92.Icon.Image = "rbxassetid://7255478600";
- elseif not v94 then
- v92.Icon.Image = "rbxassetid://7255478657";
- elseif v94 then
- if v93 then
- v92.Icon.Image = "rbxassetid://6708234702";
- end;
- end;
- end;
- Scrolling(l__Holder__76);
- end;
- function Scrolling(p13)
- local v97 = p13:FindFirstChildOfClass("UIListLayout");
- local v98 = p13:FindFirstChildOfClass("UIPadding");
- v97:ApplyLayout();
- p13.CanvasSize = UDim2.new(0, 0, 0, v97.AbsoluteContentSize.Y + v98.PaddingBottom.Offset + v98.PaddingTop.Offset);
- end;
- local l__ID__8 = v1.Directory.Gamepasses.Teleport.ID;
- function UpdateBottom()
- local v99 = v1.Gamepasses.Owns(l__ID__8);
- l__Teleport__2.UnlockAll.Visible = not v99;
- if v99 then
- local v100 = 1;
- else
- v100 = 0.85;
- end;
- if v99 then
- local v101 = 20;
- else
- v101 = 0;
- end;
- l__Teleport__2.RightContainer.Size = UDim2.new(0.6, 32, v100, v101);
- Scrolling(l__Teleport__2.Gui.Frame.RightContainer.Holder);
- end;
- v1.GUIFX.ButtonFX(l__Teleport__2);
- v1.GUIFX.Tooltip(l__Teleport__2, "Teleport");
- l__Teleport__2.Activated:Connect(function()
- if not u5 then
- u5 = true;
- if v1.Shared.IsTradingPlaza then
- local u9 = false;
- pcall(function()
- u9 = v1.VoiceChatService:IsVoiceEnabledForUserIdAsync(v1.LocalPlayer.UserId);
- end);
- v1.Signal.Fire("Show Trading Plaza Choice", u9);
- else
- l__Teleport__2.Gui.Enabled = not l__Teleport__2.Gui.Enabled;
- end;
- u5 = false;
- end;
- end);
- v1.GUIFX.ButtonFX(l__Teleport__2.Close);
- l__Teleport__2.Close.Activated:Connect(function()
- if not u5 then
- u5 = true;
- l__Teleport__2.Gui.Enabled = false;
- u5 = false;
- end;
- end);
- v1.GUIFX.ButtonFX(l__Teleport__2.UnlockAll.Buy);
- l__Teleport__2.UnlockAll.Buy.Robux.Text = "???";
- task.spawn(function()
- local v102, v103 = v1.Functions.GetPrice(l__ID__8);
- if v103 then
- l__Teleport__2.UnlockAll.Buy.Robux.Text = v1.Functions.Commas(v102);
- end;
- end);
- l__Teleport__2.UnlockAll.Buy.Activated:Connect(function()
- if not u5 then
- u5 = true;
- v1.Shared.PromptPurchase(l__ID__8, false);
- u5 = false;
- end;
- end);
- Setup();
- if v1.Shared.IsTradingPlaza then
- return;
- end;
- UpdateBottom();
- v1.Signal.Fired("Stat Changed"):Connect(function(p14)
- if p14 == "AreasUnlocked" or p14 == "TeleportsUnlocked" or p14 == "Gamepasses" then
- UpdateBottom();
- UpdateAreas();
- return;
- end;
- if p14 == "Hardcore" or p14 == "OwnsTradingPlaza" then
- UpdateRealms();
- UpdateAreas();
- end;
- end);
- v1.Signal.Fired("Resolution Changed"):Connect(function()
- task.defer(function()
- Scrolling(l__Teleport__2.Gui.Frame.LeftContainer.Holder);
- Scrolling(l__Teleport__2.Gui.Frame.RightContainer.Holder);
- end);
- end);
- coroutine.wrap(function()
- while true do
- if l__Teleport__2.Gui.Enabled then
- Scrolling(l__Teleport__2.Gui.Frame.LeftContainer.Holder);
- Scrolling(l__Teleport__2.Gui.Frame.RightContainer.Holder);
- end;
- v1.Heartbeat(30);
- end;
- end)();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement