Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My shop GUI wont make frame visible, why? I want to make frame visible by tapping a GUI

Asked by 3 years ago

Note: the shop GUI is not the child of the frame

Im making a shop gui, I want to make it so when I click the shop gui it opens a frame, how do I do that? Can someone make a script and explain it to me? If you're say to just make the frame visible: No, I'm trying to make a player manually make the frame visible

0
may you show us the script? Grazer022 128 — 3y
0
THANK YOU SO MUCH PERSON WHO POSTED ANWER Haker902c 18 — 3y
0
ur welcome hot_spi 20 — 3y

1 answer

Log in to vote
0
Answered by
hot_spi 20
3 years ago
Edited 3 years ago

local ShopButton = script.Parent local Frame = ShopButton.script -- the gui that's going to be visible when "ShopButton" gets clicked ShopButton.MouseButton1Down:Connect(function()) Frame.Visible = true end)

make sure it's a local script and it's placed in the screen gui that the frame is in

And if you want a close button do this

local TextButton = script.Parent -- Close button
local Frame = TextButton.Parent

TextButton.MouseButton1Down:Connect(function())
    Frame.Visible = False
end)

make sure the Close button is in the frame

1
i can tell that u r a beginner, i am too hot_spi 20 — 3y
Ad

Answer this question