Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Fade hint GUI Help?

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




4 comments

0

Im so confused

0

What are you actually asking for here? I'm assuming the fade isn't working but it's not exactly clear. Please explain

0

^ Hard to explain

0

Why don't you use a for loop to accomplish this? http://wiki.roblox.com/index.php?title=Loops#For

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.