-- Setup GUI elements local player = game.Players.LocalPlayer local screenGui = Instance.new("ScreenGui") screenGui.Parent = player.PlayerGui -- Create the toggle button (25x25) local toggleButton = Instance.new("TextButton") toggleButton.Size = UDim2.new(0, 25, 0, 25) toggleButton.Position = UDim2.new(0, 10, 0, 10) toggleButton.Text = "+" toggleButton.BackgroundColor3 = Color3.fromRGB(0, 255, 0) toggleButton.Parent = screenGui -- Create the main menu (hidden by default) local mainMenu = Instance.new("Frame") mainMenu.Size = UDim2.new(0, 400, 0, 400) mainMenu.Position = UDim2.new(0.5, -200, 0.5, -200) mainMenu.BackgroundTransparency = 0.5 mainMenu.BackgroundColor3 = Color3.fromRGB(0, 0, 0) mainMenu.Visible = false mainMenu.Parent = screenGui -- Create 8 buttons and labels in the main menu local labels = { "Main Map", "Mountain 1", "Mountain 2", "Death counter room", "Atomic slash room", "Upper baseplate", "Lower baseplate", "Void" } local buttons = {} for i = 1, 8 do -- Create button local button = Instance.new("TextButton") button.Size = UDim2.new(0, 100, 0, 50) -- Moved buttons 75 pixels lower by increasing the Y value in Position (by adding 75 to the Y value) button.Position = UDim2.new(0, (i-1)%4 * 105, 0, math.floor((i-1)/4) * 55 + 75) button.Text = "" button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) button.Parent = mainMenu -- Create label for button local label = Instance.new("TextLabel") label.Size = UDim2.new(1, 0, 1, 0) label.Text = labels[i] label.TextColor3 = Color3.fromRGB(0, 0, 0) label.BackgroundTransparency = 1 label.TextSize = 10 -- Reduced text size for better fit label.Parent = button table.insert(buttons, button) end -- Function to toggle the visibility of the main menu local function toggleMenu() mainMenu.Visible = not mainMenu.Visible end -- Connect the toggle button to the toggleMenu function toggleButton.MouseButton1Click:Connect(toggleMenu) -- Function to teleport the player local function teleportToPosition(position) if player.Character and player.Character:FindFirstChild("HumanoidRootPart") then player.Character.HumanoidRootPart.CFrame = CFrame.new(position) end end -- Teleportation for the 8 buttons local originalPosition = nil local baseplateCreated = false buttons[1].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(219.81, 437.76, -62.96)) -- Main Map coordinates end) buttons[2].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(-100.45, 649.84, -381.81)) -- Mountain 1 coordinates end) buttons[3].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(343.55, 696.10, 370.36)) -- Mountain 2 coordinates (updated) end) buttons[4].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(-35.38, 34.95, 20348.53)) -- Death counter room coordinates end) buttons[5].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(1086.53, 142.31, 23007.97)) -- Atomic slash room coordinates end) buttons[6].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(1163.84, 402.99, 22901.67)) -- Upper baseplate coordinates end) buttons[7].MouseButton1Click:Connect(function() teleportToPosition(Vector3.new(1144.79, 16.93, 22928.82)) -- Lower baseplate coordinates end) buttons[8].MouseButton1Click:Connect(function() -- Check if we are already in the Void location if originalPosition == nil then -- Store the current position (original position) and teleport to the Void coordinates originalPosition = player.Character.HumanoidRootPart.CFrame.Position teleportToPosition(Vector3.new(-6896.53, 873.40, -6729.34)) -- Void coordinates -- Create a 100x100x100 baseplate 2 studs below the Void position if not baseplateCreated then local baseplate = Instance.new("Part") baseplate.Size = Vector3.new(100, 1, 100) -- 100x100 baseplate baseplate.Position = Vector3.new(-6896.53, 871.40, -6729.34) -- 2 studs below the Void position baseplate.Anchored = true baseplate.Parent = game.Workspace baseplateCreated = true end else -- If already in Void, teleport back to the original position teleportToPosition(originalPosition) originalPosition = nil -- Reset the original position end end)