I have a frame that I want to tween the color and transparency of. My issue is that I am unable to change some properties of the frame. I am pretty sure it is not my code, because while the game is running, if I try to change the transparency or color of the frame, nothing happens. However, I am still able to change the position and toggle visibility. Does anybody know how to fix this?
Thanks!
Can you provide your script for further analysis?
local replicatedFirst = game:GetService(“ReplicatedFirst”)
local contentProvider = game:GetService(“ContentProvider”)
local tweenService = game:GetService(“TweenService”)
local players = game:GetService(“Players”)
local player = players.LocalPlayer
local playerGui = player:WaitForChild(“PlayerGui”)
local loadingScreen = script:WaitForChild(“ScreenGui”)
replicatedFirst:RemoveDefaultLoadingScreen()
repeat task.wait() until game:IsLoaded()
local assets = game:GetDescendants()
local clonedLoadingScreen = loadingScreen:Clone()
clonedLoadingScreen.Parent = playerGui
loadingScreen:Destroy()
for i = 1, #assets do
local asset = assets[i]
local percentage = math.round(i / #assets * 100)
contentProvider:PreloadAsync({asset})
clonedLoadingScreen.realFrame.TextLabel.Text = (i .. " / " .. #assets)
--clonedLoadingScreen.Frame.realFrame.BackgroundColor3 = Color3.new(1,.5,0)
if (i == #assets) then
task.wait(1)
end
end
for i, v in pairs(clonedLoadingScreen:GetDescendants()) do
print(v)
if v:IsA(“Frame”) then
tweenService:Create(v, TweenInfo.new(0.5), {BackgroundTransparency = 1}):Play()
v.Visible = false
–tweenService:Create(v, TweenInfo.new(0.5), {BackgroundColor3 = Color3.new(.5,.5,.5)}):Play()
print(“isframe”)
elseif v:IsA(“TextLabel”) then
tweenService:Create(v, TweenInfo.new(0.5), {TextTransparency = 1}):Play()
end
end
It is a modified version of a tutorial, but like I said in the original post, I am able to change the position and toggle visibility with the script, but I cannot change much else.
I’m just dumb. I forgot about the background transparency of a textlabel…
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.