What im trying to achieve is when i press the next or backwards button the map text changes based on the table and when it gets to the first or last value which is “House” it stops and you cant go further
My Code:
local Maps = {
"Bank",
"Hotel",
"House"
}
local Configurations = {
Map = "Bank"
}
MapGui.Next.Activated:Connect(function()
Configurations.Map = Maps[]
MapLabel.Text = Configurations.Map
end)
MapGui.Back.Activated:Connect(function()
--Idk anymore
end)