-
What do you want to achieve? I want to make a screen invisible
-
What is the issue? I’m having trouble getting it right
-
What solutions have you tried so far? I’ve looked over the output bar and tested it, and it still didn’t work.
Here is my Script:
local Parent.Parent.Screen.Visible = false
Here is a screenshot of the Screen and Board:
1 Like
penn_dev
(penn_dev)
#2
[SOLUTION] The problem is the script, I would recommend you going on Youtube and seeing tutorials, I hope this helped.
1 Like
Thank you for the feedback! I will check Youtube now!
1 Like
penn_dev
(penn_dev)
#4
No problem! Happy to help!
1 Like
E3saR33
(E3saR33)
#5
- :
– you can’t use local
with changing property value
– and parent
without instance before is wrong
so the correct code should be like this :
script.Parent.Parent.Screen.Visible = false
1 Like
Alrighty, thanks so much for your support!
It didn’t seem to work… The screen is still visible. Here is the error message I’m getting:
(Also, the Screen is not a UI, just a part)
I’m trying a Youtube video right now though.
It’s cringe
E3saR33
(E3saR33)
#10
oh,
- for ScreenGui you should use
Enabled
- for Frame you should use
Visible
so your code should be
script.Parent.Parent.Screen.Enabled = false
2 Likes
OHHH!! I got it now! Thanks a lot!
1 Like
E3saR33
(E3saR33)
#12
No problem. I love to help
1 Like
penn_dev
(penn_dev)
#13
If mine helped you, a reply with a solution, would be appreciated!