How i can create a new download bar becasue the original one are not triggered if i use "downloadFile " . I have this code for convert size : i need some help , what i need to use to make a download bar.
function sizeFormat(size)
local size = tostring(size)
if size:len() >= 4 then
if size:len() >= 7 then
if size:len() >= 9 then
local returning = size:sub(1, size:len()-9)
if returning:len() <= 1 then
returning = returning.."."..size:sub(2, size:len()-7)
end
return returning.." GB";
else
local returning = size:sub(1, size:len()-6)
if returning:len() <= 1 then
returning = returning.."."..size:sub(2, size:len()-4)
end
return returning.." MB";
end
else
local returning = size:sub(1, size:len()-3)
if returning:len() <= 1 then
returning = returning.."."..size:sub(2, size:len()-1)
end
return returning.." KB";
end
else
return size.." B";
end
end
: