Here's the script :
local v =game.Workspace.AV
script.Parent.Touched:Connect(function(part)
if v.Value ~= 2 then
v.Value = 1
end
end)
The script checks if the value is equal to 2 and then it changes it to 1 when the part is touched.
There's another script that changes the value from 1 to 2.

1 comment
Oh true, and how can I fix it? Add a loop?