I Created a Loading Bar (GUI) and i don't know how to Remove the GUI automatically with script.
Here's my Written Code in the LocalScript.
for i = 0,100,1 do
script.Parent.DataLoader.Text = "Data Loaded: " .. math.floor(i) .. "%"
script.Parent.Loader.Size = UDim2.new(0, i*5, 0, 50)
wait(math.random(0.13,0.12))
end

1 comment
I Rewrite again the Code and i change the code to your code you provided. But im asking how to remove it using the :destroy() or function. you should post the code