Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

This boolvalue script isn't working properly?

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.

1 answer

✓ Accepted answer

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?

1 comment

0

Nothing is working. I tried different scripts, and believe it or not, the frame property was visible, but it wan't onscreen! What is happening!

This discussion is preserved as it was. New answers, comments, and votes are closed.