In a local script in TextButton.
function onButtonActivated()
script.Parent.Parent.Enabled = false
game.StarterGui.Weapons.Enabled = true
end
script.Parent.Activated:Connect(onButtonActivated)
The first part works but not the second. can you please help?

2 comments
What I mean is that it will close the GUI but not open the second one.
https://forum.scriptinghelpers.org/topic/1007/guide-to-debugging-common-problems