How would this code run?

the main problem is that their code needs two end’s, not just one end

local var = {} do
    if math.random() == 0 then
        var = nil
    end
end

this is the working code if do is used

2 Likes