Code:
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.TutorialFrame.Visible = true
end)
script.Parent.MouseButton1Click:Connect(function()
script.Parent.Parent.Visible = false
script.Parent.Parent.Parent.TutorialFrame.Visible = true
end)
Are any errors outputted?
This is useful information as errors typically are descriptive of what is going wrong.
No. there is no error outputted
Right, It’d help to see the hierarchy of the StarterGui.
Could you see if there is being anything being printed when you press the button, if you put a print in?
Could you also show the properties of the TutorialFrame?
It prints it twice:
What do you need from the properties?
I would suggest for a start putting all your UI controls inside of one local script rather than having individual scripts for each button as this would help keep things a bit neater and reduce the number of scripts needed.
In regards to your problem which script is this in the screenshot you provided?
The script is in the show button
You mean the script called SHOWYOURFACE
yes?
If that is the case you are setting the entire screenGUI visibility to false meaning that all children of said ScreenGUI become invisible
No. The script in the button. SHOWYPURFACE is to show the whole ui
Which button though as you have 4 separate scripts inside 4 separate buttons.
All I asked is why does my show gui script not work. I think it’s TextButton5
Check to see if Text_01
is visible.
There is nothing visually wrong with your code from what I can tell just from looking at that line and as you are getting no errors.
The only reasonable explanation Is that the frame Text_01
is not set as visible and therefore is not seen when changing the visibility of TutorialFrame
.
I would still suggest however to compress all these scripts into one singular script to control the UI tweening/visability etc to improve the efficiency and reduce the chance of any possible confusion when looking though your scripts!
I need it to see if there’s any properties that may cause the TutorialFrame not to be visible.
Ok. Thanks. I will try this.