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

Fade hint GUI Help?

Asked by 9 years ago

I have a script that I want to fade while the text shows up and goes away here's the script for the text:

Part = script.Parent
while true do
    Part.Text = "WELCOME TO SEAT SURVIVAL"
    wait(4)
    Part.Text = "Report problems to ikxnqremy And Ideas."
    wait(4)
    Part.Text = ""
    wait(4)
   Part.Text= "Send me a PM"
   Wait(4)
end

And the fade script is

    while true do
    script.Parent.Transparency = 0
    wait(.3)
    script.Parent.Transparency = .1
    wait(.3)
    script.Parent.Transparency = .2
    wait(.3)
    script.Parent.Transparency = .3
    wait(.3)
    script.Parent.Transparency = .4
    wait(.3)
    script.Parent.Transparency = .5
    wait(.3)
    script.Parent.Transparency = .6
    wait(.3)
    script.Parent.Transparency = .7
    wait(.3)
    script.Parent.Transparency = .8
    wait(.3)
    script.Parent.Transparency = .9
    wait(.3)
    script.Parent.Transparency = 1
    wait(.3)
    script.Parent.Transparency = .9
    wait(.3)
    script.Parent.Transparency = .8
    wait(.3)
    script.Parent.Transparency = .7
    wait(.3)
    script.Parent.Transparency = .6
    wait(.3)
    script.Parent.Transparency = .5
    wait(.3)
    script.Parent.Transparency = .4
    wait(.3)
    script.Parent.Transparency = .3
    wait(.3)
    script.Parent.Transparency = .2
    wait(.3)
    script.Parent.Transparency = .1
    wait(.3)
    script.Parent.Transparency = 0
    wait(.3)
end




0
Im so confused iKxnqRemy -2 — 9y
0
What are you actually asking for here? I'm assuming the fade isn't working but it's not exactly clear. Please explain Uroxus 350 — 9y
0
^ Hard to explain iKxnqRemy -2 — 9y
0
Why don't you use a for loop to accomplish this? http://wiki.roblox.com/index.php?title=Loops#For TheeDeathCaster 2368 — 9y

1 answer

Log in to vote
0
Answered by
DrShockz 233 Moderation Voter
7 years ago

I've been using fades in my game and I accomplish this with a Local Script using a for loop

Here is an example

local text_to_fade = game.StarterGui.ScreenGui.TextLabel

for i = 1, 10 
wait(0.001)
text_to_fade.TextTransparency = text_to_fade.TextTransparency - 0.1 -- Fades script in, if text transparency is 1
end
Ad

Answer this question