So here's my code, it's supposed to move a model from a folder in serverstorage to workspace every 5 seconds, so I was doing a test run with print's and warns, I set active to true and it printed C every 5 seconds as it was supposed to, but after active is changed to false it keeps going on.
local active = script.Parent.active
local SS = game:GetService('ServerStorage')
local donutfolder = SS.donuts
local donutcode = script.Parent.donutcode
while true do
if active.Value then --> e
elseif donutcode.Value == 1 then
print('c')
else
warn('inactive11!!!!1!') --> This prints upon server startup but when I set active to false it keeps printing c
end
wait(5)
end
(see code comments for more info) How do I fix this?
NOTE: Yeah sorry for not explaining much.

4 comments
Is something other than it being active causing the else to happen? Example being the value being 2?
My issue is the else is not happening when active is changed from true to false.
maybe try if active.Value = false then warn("")
Just tried, not working.