I’m trying to make a character creation menu and I’m trying to make it so you click through a series of arrows and they bring up the different menus, as shown:
Currently, my code is a long mess that barely works. I’d assume you use some type of loop, but I’m not all that advanced in Luau, so I’m not sure how to go about making all of this.
Here’s my current code:
script.Parent.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Backwards.Visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Skin.Visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Hair.Visible = false
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Backwards.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Hair.Visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Skin.Visible = false
script.Parent.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Face.Visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Skin.Visible = false
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Backwards.Activated:Connect(function()
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Skin.Visible = true
game.Players.LocalPlayer.PlayerGui.ScreenGui.CharacterCreationUI.Main.Selection.Face.Visible = false
end)
end)
end)
end)
So, is there a better way of doing what I’m trying to do? Any help is appreciated