What i want:
I want that, upon clicking the button located in a folder in StarterGui called 'gui' in the main menu, the 'Story' button closes the main menu and opens the story menu located in the same folder called 'gui.' So basically:
**-Remove the menu I am currently in upon clicking (already done).
-Display the other menu (I can't figure this out and need help with it specifically).**
My Code:
`local RepliStorage = game:GetService("ReplicatedStorage")
local Plyr = game:GetService("Players")
local StarterGui = game:GetService("StarterGui")
local player = Plyr.LocalPlayer
local playerGui = player:WaitForChild("PlayerGui")
local stryMenu = StarterGui:WaitForChild("GUI"):WaitForChild("Story Menu")
local mainMenu = StarterGui:WaitForChild("GUI"):WaitForChild("Main Menu")
local mainBttonMenu = mainMenu:WaitForChild("Story")
script.Parent.MouseButton1Click:Connect(function()
print("Clicking the button works")
script.Parent.Parent:Destroy()
local ClonedStoryMenu = stryMenu:Clone()
ClonedStoryMenu = StarterGui.GUI
ClonedStoryMenu.Enabled = true
end)`
Folders: