Hi!
my third #help-and-feedback:scripting-support topic on my loading screen lol
For some reason, this should make the image transparent, but it’s not.
It’s making this the output:
No console errors
What’s wrong?
the code that’s important in this:
function fade()
script.Parent.Frame.logo.ImageTransparency -= 0.01
end
script.Parent.Frame.logo:TweenSize(UDim2.new(2, 0, 3, 0), "Out", "Linear", .3, true) -- {0.533, 0},{0.751, 0}
script.Parent.Frame.logo:TweenPosition(UDim2.new(-0.5, 0, -0.619, 0), "Out", "Linear", .3, true) -- {-0.5, 0},{-0.619, 0}
for i = 1,100 do
wait (0.001)
fade()
end
wait(3)
entire loading script’s code:
script.Parent.Parent.Enabled = true
local plrname = game.Players.LocalPlayer.Name
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,false)
local Assets = {
game:GetService("Workspace"),
game:GetService("Players"),
game:GetService("NetworkClient"),
game:GetService("ReplicatedFirst"),
game:GetService("ReplicatedStorage"),
game:GetService("ServerStorage"),
game:GetService("StarterPack"),
game:GetService("StarterPlayer"),
game:GetService("Teams"),
game:GetService("SoundService"),
game:GetService("Chat"),
game:GetService("LocalizationService"),
game:GetService("Lighting")
}
local text = script.Parent.Frame.Frame.TextLabel
local barImg = script.Parent.Frame.Frame.ImageLabel
local ContentProvider = game:GetService("ContentProvider")
function fade()
script.Parent.Frame.logo.ImageTransparency -= 0.01
end
pcall(function()
for i = 1, #Assets do
local Asset = Assets[i]
text.Text = "Configuring "..Asset.Name.." [".. i .. " / "..#Assets.."]"
ContentProvider:PreloadAsync({Asset})
local Progress = i / #Assets
barImg:TweenSize(UDim2.new(Progress, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false)
wait(0.3)
end
end)
wait(0.1)
for i = 1,5 do
barImg:TweenSize(UDim2.new(1, 0, 1, 0), Enum.EasingDirection.In, Enum.EasingStyle.Sine, 1, false)
end
wait(1)
local Info = TweenInfo.new(1)
local Frames = {script.Parent.Frame,script.Parent.Parent.Frame.Frame}
for i, frame in pairs(Frames) do
local Tween = game:GetService("TweenService"):Create(frame,Info,{BackgroundTransparency=1})
Tween:Play()
end
local Tween_2 = game:GetService("TweenService"):Create(script.Parent.Parent.Frame.Frame.Frame.TextLabel,Info,{TextTransparency=1})
local Tween_3 = game:GetService("TweenService"):Create(script.Parent.Frame.Frame.ImageLabel,Info,{ImageTransparency=1})
local Tween_4 = game:GetService("TweenService"):Create(script.Parent.Frame,Info,{BackgroundTransparency=1})
Tween_2:Play()
Tween_3:Play()
Tween_4:Play()
wait(3)
script.Parent.Frame.logo:TweenSize(UDim2.new(2, 0, 3, 0), "Out", "Linear", .3, true) -- {0.533, 0},{0.751, 0}
script.Parent.Frame.logo:TweenPosition(UDim2.new(-0.5, 0, -0.619, 0), "Out", "Linear", .3, true) -- {-0.5, 0},{-0.619, 0}
for i = 1,100 do
wait (0.001)
fade()
end
wait(3)
for i = 1,15 do
wait (0.01)
script.Parent:TweenPosition(UDim2.new(1, 0, 0, 0), "Out", "Linear", 1, true)-- {0.25, 0},{0.16, 0}1
end
wait(3)
StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.All,true)
local BM = script.Parent.Parent.Parent.WelcomeScreen.Beta
wait (2)
if BM.Visible == false then
local LocalScript = game.Workspace.PlayerEntered:WaitForChild("CutsceneScript",10):Clone()
LocalScript.Parent = game.Players.LocalPlayer.Character
LocalScript.Disabled = false
BM.Visible = true
else
end
Thanks for any help!


