Is there a way to make a button (in a separate ScreenGui) open a frame (in a separate ScreenGui)?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Make a button in my settings UI frame, open a brand new UI frame.

  2. What is the issue? The issue listed was in line 8, listed below.

  3. What solutions have you tried so far? Looked for solutions in YT but no help to it.

local open = script.Parent.Parent.SettingsUI.MainFrame.BarFrame["STab-2"].System.ViewSystem
local open = game.StarterGui.SettingsUI.MainFrame.BarFrame["STab-2"].System.ViewSystem

Use this code provided below into the local script of the button in the settings UI frame.

local playergui = game.Players.LocalPlayer.PlayerGui
local button = script.Parent -- the button in the settings UI
local frame_to_open = playergui["OTHER SCREENGUI's NAME"].Frame -- change this

button.MouseButton1Click:Connect(function() -- if button in settings UI is clicked, then...
frame_to_open.Visible = true -- make the other screengui's frame visible
end)
1 Like