when it finish loading it dont fade away at all...
hint = script.Parent while true do hint.Text = "Loading Data" wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading Planets..." wait(.5) hint.Text = "This May Take a While." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Making Sure Everything is Set.." wait(10) hint.Text = "Load Complete." wait(2) hint.Parent.Parent.Transparency = 0.6 wait(2) hint.Parent.Parent.Transparency = 0.9 wait(2) hint.Parent.Parent.Transparency = 1 wait(2) hint.Parent.Parent.Destroy() end
Try this. This will make it fade nice and smoothly!
What I did: I made it so that i is equal to the transparency deducting by .1 so every second the transparency will deduct by .1 transparency until it goes invisible!
hint = script.Parent while true do hint.Text = "Loading Data" wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading Planets..." wait(.5) hint.Text = "This May Take a While." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Making Sure Everything is Set.." wait(10) hint.Text = "Load Complete." wait(2) for i = 0.1,1,0.1 do wait(0.1) hint.TextTransparency = i hint.BackgroundTransparency = i end wait(2) hint:Destroy() end
Instead of using two ".Parents" and transparency, use hint.TextTransparency: hint = script.Parent
hint = script.Parent while true do hint.Text = "Loading Data" wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading Planets..." wait(.5) hint.Text = "This May Take a While." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading" wait(.5) hint.Text = "Loading." wait(.5) hint.Text = "Loading.." wait(.5) hint.Text = "Making Sure Everything is Set.." wait(10) hint.Text = "Load Complete." wait(2) hint.TextTransparency = 0.6 hint.BackgroundTransparency = 0.6 wait(2) hint.TextTransparency = 0.9 hint.BackgroundTransparency = 0.9 wait(2) hint.TextTransparency = 1 hint.BackgroundTransparency = 1 wait(2) hint:Destroy() end
The error is that you did .Destroy
with a dot instead of a colon. Destroy is a method meaning it's a function. Use Destroy correctly and it should work, also, to make the script shorter I'll add some loops.
local hint = script.Parent local count = 0 hint.Text = "Loading Data" wait(.5) hint.Text = "Loading..." wait(.5) hint.Text = "Loading Planets..." wait(.5) hint.Text = "This May Take a While." wait(.5) for i = 0,11,1 do wait(.5) hint.Text = "Loading"..string.rep(".", count) count = (count+1) % 4 end wait(.5) hint.Text = "Making Sure Everything is Set.." wait(10) hint.Text = "Load Complete." for i = 0,1,.1 do wait() hint.Parent.Parent.Transparency = i end hint.Parent.Parent:Destroy()
Hope it helps!