Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[UNANSWERED]making this fade away when done?

Asked by
22To 70
9 years ago

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

0
I don't understand people like you. I do understand that this looks cool, but what is it loading? It's not verifying that it's loading anything in ContentProvider.. Nickoakz 231 — 9y

3 answers

Log in to vote
1
Answered by 9 years ago

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

Ad
Log in to vote
0
Answered by 9 years ago

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
Log in to vote
0
Answered by 9 years ago

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.


Final Product

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!

Answer this question