generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

changeText() Fade down effect

Previous Thread :: Next Thread 
candygurl2002 is not online. candygurl2002
Joined: 07 Mar 2013
Total Posts: 32
06 Sep 2017 06:03 PM
Hi, so I am currrently making a game, and I was wondering how do you make a fade down effect for a TextLabel / ScreenGUI? This is the code im using:

function changeText(Text)
game.StarterGUI.GameText.TextG.Text = Text
end

I was wondering how since I have seen many people do it, for example [FundUlx] (disorder is a good game) Please tell me with infomation.

~Candygurl2002
--------------
Game Developer
Report Abuse
Wrathoxic is not online. Wrathoxic
Joined: 29 May 2013
Total Posts: 1950
06 Sep 2017 06:06 PM
############################## for i=0,1,.1 do wait() tLabel.TextTransparency=i end
Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
06 Sep 2017 06:09 PM
from what u provided, there are two options:

one: use coroutines and make a loop to fade out the gui slowly

two: directly apply that loop into the function

local r = 0
repeat

wait(x)
r = r + 0.1
directory.transparency = r
until r == 1

coroutines are risky with wait() though, so don't use them all the time

also it's a good idea not to direct the script towards startergui, rather the script's parent, which should be the gui

that way, u dont have to access the individual players manually
Report Abuse
LaeMVP is online. LaeMVP
Joined: 24 Jun 2013
Total Posts: 4416
06 Sep 2017 06:10 PM
StarterGui ~= PlayerGui
Report Abuse
Corrupted_Memory is not online. Corrupted_Memory
Joined: 14 Mar 2017
Total Posts: 106
06 Sep 2017 06:56 PM
for i = 1,0,-1 do
script.Parent.Background = i
end
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
06 Sep 2017 07:33 PM
(script in PlayerGui in the Frame you want to go poof)

for i = 1,100,1 do
script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency + 1
wait()
end



attempt to index global 'soul' (a nil value)
Report Abuse
Wrathoxic is not online. Wrathoxic
Joined: 29 May 2013
Total Posts: 1950
06 Sep 2017 07:59 PM
@SinisterMemories, Won't that make it instantly invisible?


Report Abuse
SlimeMan22 is online. SlimeMan22
Joined: 10 Mar 2012
Total Posts: 1210
06 Sep 2017 08:00 PM
@gohan what do you mean coroutines are risky with wait()? Could you explain please? I might have to go back and rewrite things.

Šçrätčh ïïś üśëd bÿ łëvëł 17 äñöñ DÖŠ HTMŁ hæx0rs whö üsë ŚQŁ++ ïïńśpëçt ëłæmęñtïïñg
Report Abuse
SinisterMemories is not online. SinisterMemories
Joined: 21 Mar 2013
Total Posts: 4892
06 Sep 2017 08:02 PM
@wrathoxic

oh my mistake I guess I have a musclememory, im so used to using variable + 1.


Here use this


for i = 1,100,1 do
script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency + 1/100
wait()
end



attempt to index global 'soul' (a nil value)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image