open = script.Parent.Main base = script.Parent.Parent.NightVision base.Changed:connect(function() if base.Value == true then open.Visible = true end end)
What is going on? This looks all fine to me, but the frame won't become visible. Any help would be appreciated.
Your code provided should work but i'll suggest this; The Changed event returns the value that changed. So you can access the change by setting a Parameter, which you will use for the value.
local open = script.Parent.Main local base = script.Parent.Parent.NightVision base.Changed:connect(function(change) open.Visible = change --if change is true, visible is true. end end)
If this doesn't help then perhaps another part of your script is erroring.. can you provide an output?