This script is in a script. It tests if the leaderstats Quest Value is 0 if its true then it will enable the script.
local players = game.Players:children()
while wait(.1) do
if players.leaderstats.Quest.Value == 0 then
script.Parent.Disabled = false
else
script.Parent.Disabled = true
end
end
