local Loading = script.Parent
local Warning = script.Parent.Parent.TextLabel
local Background = script.Parent.Parent
local value = script:WaitForChild("Percent") --IntValue
value.Changed:connect(function()
if value.Value >= 100 then
Loading.Text = 100
else
Loading.Value = 100
end
end)
while wait(math.random(0.1, 1)) do
value.Value = value.Value + math.random(1, 5)
if value.Value >= 100 then
break
end
end
|