I'm a beginner to scripting and I'm trying to make a button that opens another gui when it's clicked on. It won't work and the output isn't telling me anything. What am I doing wrong?
Code:
local exitButton = script.Parent
local missionGui = game.StarterGui.missionGui
exitButton.MouseButton1Click:Connect(function()
missionGui.ScrollingFrame.Visible = true
end)
I have also tried
local exitButton = script.Parent
local missionGui = game.StarterGui.missionGui
exitButton.MouseButton1Click:Connect(function()
missionGui.Enabled = true
end)

1 comment
I'm new to this you should accept @NiniBlackJackQc's Answer it's better