Greetings developers, I’m @ZeronN_Me or better known as TimeNotDesign, I’m still new to this community, but I need help with a problem.
The problem
Well, let’s get to the point of this question, so, I’m creating a game, with a theme of levels etc, but, I don’t know how to do these things:
Click on a GUI and be redirected to another one (Examples: “Play”, “Settings” and “Credits” buttons and this other GUI’S would be called “Levels”).
Within these GUI’S (Levels), by clicking on them, you would be redirected to another game, maybe, in the future, I will need to help with other things with this game, but, this is the problem I have now.
Hello! First of all, I think this fits better in #help-and-feedback:scripting-support but I’m not sure.
Now, for the scripting - first you need to set up a clicked event inside a LocalScript inside the TextButton
script.Parent.MouseButton1Down:Connect(function()
-- do stuff
end)
inside the event, you need to edit the “Visible” property of certain items such as frames -
yourPlayFrameVariable.Visible = true -- the variable would be something like player.PlayerGui.MainGui.PlayFrame
script.Parent.Visible = false -- make the button itself invisible