local questNumber = workspace.Quest.QuestNumber
function onTouched(hit)
if questNumber.Value == 1 then
questNumber.Value = 0
end
end
script.Parent.Touched:connect(onTouched)
I want to make a block that when you touch it, the script checks if the value is 1 and if the value is 1 the script sets this value to 0. Its really simple, but I DONT UNDERSTAND WHY MY SCRIPT UP THERE DONT WORK!! Pls can someone help me.
(sorry if my English is bad)

8 comments
THX that work!! Man, you save me
Make sure you accept the answer to save peoples time and mark the question as answered
i dont know how
oh usually you hover over the answer
and a button would show up
i dont see it, i think my rep is too low
You don't need rep to accept an answer, its okay though people should see the question has been answered
ok