axinatelyy
(axinately)
September 15, 2020, 3:26pm
#1
Hello Dev Forum members!
Recently I’ve been wondering something that I couldn’t seem to find anywhere on the Developer Forum, and that’s how can I open a new Frame “Frame2 ” with a Text Button “Open ” that’s already inside another Frame “Frame1 ”?
(Sorry if it’s in the wrong category)
Open.MouseButton1Click:Connect(function()
Frame2.Visible = true
end
epochzx
(epoch)
September 15, 2020, 10:48pm
#3
You’ll have to define your Frames and Button aswell (assuming that they’re all in ScreenGui or have the same Parent)
local Button = script.Parent
local Frame2 = script.Parent.Parent:WaitForChild("Frame2")
Button.MouseButton1Click:Connect(function()
Frame2.Visible = true
end)
axinatelyy
(axinately)
September 16, 2020, 11:17am
#4
Worked at first, after I tried a different Frame it just didn’t work.
axinatelyy
(axinately)
September 16, 2020, 12:31pm
#5
Ok, it works now! Turns out I misspelled something.