I have no idea why this line of code won't work. the following global script is inside of a Bool value that is inside of a local script.
while wait() do
if script.Parent.Value == true then
script.Parent.Parent.Disabled = true
end
end
while wait() do
if script.Parent.Value == false then
script.Parent.Parent.Disabled = false
end
end
the goal as you can see is when the parent of this script (the boolvalue) is set to true to disable the local script which is the parent of the bool value and when the value of the bool is false to undisable the local script it.

3 comments
wow u beat me too it,i did the exact same thing ._.
elseif without space between the 'else' and the 'if'
oops