Hello! Im trying to make gui like this when it switch page. But I have no idea how can I do it? Give me some guide please.
Thank for helping!
Hello! Im trying to make gui like this when it switch page. But I have no idea how can I do it? Give me some guide please.
Thank for helping!
Here are my two methods.
Frame.Visible
to false
on the frames you want to hide and set it to true
on the one you want to show.Edits: Changed things to Frame.Visible
because I originally mixed up the properties in my head while writing
Changing the screen to invisible is the best way to change the page.
By using only
local Page2 = StarterGui.ScreenGui.Page2
Game.StarterGui.ScreenUi.Page1Button.MouseButton1Click:connect(function()
Script.Parent.Visible = false --This means that by pressing the "Page1 button" you can open the second page
Page2.Visible = true
end)
1.Look for StarterGui in Explorer
2.Click the add button and add ScreenUi
3.Add two frames in ScreenUi (One for the first page and another for the second page)
4.Put the script above into “Page1” or the first page.
5.Make the second page invisible by pressing the cross button in “Visible”
6.Done!
I hope you find this short tutorial helpful, thanks for reading.
Hello There!
When i experienced this before it was like store Gui including 4-5 frames with different types of goods so i made Number value which respresented the Page number and by checking the Page number. Lets say for example Player clicked on button 4 (For Page 4) The script checks makes all Frames Visible false and Page 4 Visible True
Hope this helps!