tweening away didnt work so i tried turning the visibility off but the problem still stays which is confusing
dont mind the checking visibility, i forgot its in playergui but
i checked the playergui’s one and the visibility went off after the game has loaded but the background is still visible
local ContentProvider = game:GetService("ContentProvider")
local holder = script.Parent.barHolder
local assets = workspace:GetDescendants()
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local function start()
for i =1, #assets do
local percentage = math.floor(i/#assets * 100)
ContentProvider:PreloadAsync({assets[i]})
holder.assetCounter.Text = "Assets Loaded: "..i.."/"..#assets
holder.percentage.Text = percentage.."%"
holder.bar:TweenSize(UDim2.fromScale(percentage/100,1) )
end
task.wait(1)
holder:TweenPosition(UDim2.fromScale(0.5,-1.5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.1,true)
holder.Visible = false
end
start()
btw also without changing the visibility, the tweening was supposed to tween the background away too but it didn’t. so if you know how to fix that can you think about that too thank you for trying btw
i have no idea then, maybe try accessing the holder (not barHolder) frame instead?
local ContentProvider = game:GetService("ContentProvider")
local barHolder = script.Parent.barHolder
local holder = barHolder.Parent
local assets = workspace:GetDescendants()
game.ReplicatedFirst:RemoveDefaultLoadingScreen()
local function start()
for i =1, #assets do
local percentage = math.floor(i/#assets * 100)
ContentProvider:PreloadAsync({assets[i]})
barHolder.assetCounter.Text = "Assets Loaded: "..i.."/"..#assets
barHolder.percentage.Text = percentage.."%"
barHolder.bar:TweenSize(UDim2.fromScale(percentage/100,1) )
end
task.wait(1)
holder:TweenPosition(UDim2.fromScale(0.5,-1.5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.1,true)
holder.Visible = false
end
start()
OHHHHHHH I GET IT
the general holder frame (not barHolder) IS the background, but you only disabled visibility of the barHolder, so the background stayed
wait but, without visibility, is it possible to make it disappear too? like by tweening bcs that was what holder:TweenPosition(UDim2.fromScale(0.5,-1.5),Enum.EasingDirection.Out,Enum.EasingStyle.Quad,0.1,true) was tryna do