game.Players.LocalPlayer.PlayerGui:SetTopbarTransparency(0)
local contentprovider = game:GetService("ContentProvider")
local thingstosay = {"Make sure to do your best!","Use correct grammar!","Don't mess around!","Remember, this is a 'Interview center' not a 'Training Center'."}
function changetxt()
local tosay = thingstosay[math.random(1,#thingstosay)]
local txt = script.Parent.bck.tip
txt.Text = (tosay)
end
function fade()
local s1 = script.Parent.bck
local s2 = script.Parent.bck.tip
local s3 = script.Parent.bck.ld
s1.BackgroundTransparency = s1.BackgroundTransparency + 0.01
s2.TextTransparency = s2.TextTransparency + 0.01
s3.TextTransparency = s3.TextTransparenc``y + 0.01
end
local AmountOfAssetsLoaded = script.Parent.bck.AssetsLoaded.Value
local AllAssets = game.ContentProvider.RequestQueueSize
AssetsLoaded = game.ContentProvider.RequestQueueSize
AmountOfAssetsLoaded.Value = game.ContentProvider.RequestQueueSize
while game.ContentProvider.RequestQueueSize > 0 do
if game.ContentProvider.RequestQueueSize < AssetsLoaded then
AmountOfAssetsLoaded.Value = game.ContentProvider.RequestQueueSize
AmountOfAssetsLoaded.Changed:connect(changetxt)
end
end
repeat fade() until script.Parent.bck.BackgroundTransparency == 1
At line 24 it gives me this error
Players.ThatGamer883.PlayerGui.Intro.lod:24: attempt to index local 'AmountOfAssetsLoaded' (a number value)
Any help would be appreciated, thanks!
