local Space = game.StarterGui.ScreenGui.Space
local SecondFrame = game.StarterGui.ScreenGui.SecondFrame
MouseButton1Click:Connect(function()
Space.Visible = false
SecondFrame.Visible = true
end
Error: Players.DevSeveral.PlayerGui.ScreenGui.TextButton.LocalScript:7: Expected ')' (to close '(' at line 4), got Layout:https://i.gyazo.com/bfe052345f8d803d98ac68945fc18fcc.png
I am trying to make it when someone clicks that button the Frame becomes not visible and another one becomes visible
The frame I want to be not invisible is 'Space' and the one I want to be visible is 'SecondFrame'

8 comments
Hope it works!
for the first script I got this, 14:22:16.804 - Players.DevSeveral.PlayerGui.ScreenGui.TextButton.LocalScript:9: attempt to index nil with 'MouseButton1Click'
wait sorry my bad, ill edit the answer
Try now with the updated answer
First one does not work and I get no error
Try now, also did you try the second script i gave you?
Hey! The first script worked but second did not but that's fine! Tysm!'
Try the second script now again.