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

How To Script A Script That Hides A Frame Already Opened When You Open Another In Published Game?

Asked by
Omzure 94
5 years ago
Edited 5 years ago

I want to be able to hide a GUI when i open another one in game when the game is published, like for example: I open rebirth frame and then I open shop frame, and the rebirth frame disappears.

1
I dont follow. Just make the other frame not visible where you're making the frame you want open visible. DinozCreates 1070 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago

Something like this.

rebirthframe = --reference where rebirth frame is
shopframe = --reference where shop frame is

script.Parent.MouseButton1Click:Connect(function()
    rebirthframe.Visible = true 
    shopframe.Visible = false
end)
Ad

Answer this question