For some odd reason, this won't work. I tried putting it in a while true do but that didn't work either. I am trying to have the value changed when two other values all under the same model equal a certain thing at the same time. I know the two values change and equal whats given below, so now im trying to figure out why it wont run.
/ Original Script
script.Parent.Value=false
if script.Parent.Parent.CurrentTrackNumber==22 and script.Parent.Value==false then
wait(10)
script.Parent.Value=true
wait(5)
script.Parent.Value=false
end
While true do Script
script.Parent.Value=false
while true do
if script.Parent.Parent.CurrentTrackNumber==22 and script.Parent.Value==false then
wait(10)
script.Parent.Value=true
wait(5)
script.Parent.Value=false
end
end

3 comments
what is CurrentTrackNumber ?
It is a number value
It is a number value that shares a model with scripts parent which is identified as "check"