|
| 18 Oct 2014 09:26 PM |
script.Parent.Changed:connect(function() for i = 1,0,-.1 do script.Parent.TextTransparency = i script.Parent.TextStrokeTransparency = i wait() end wait(4) for i = 0,1,.1 do script.Parent.TextTransparency = i script.Parent.TextStrokeTransparency = i wait() end end)
No output. It doesn't make the text appear when the text changes. What is going on? |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2014 09:29 PM |
| When I actually need help here I never receive it. Let's bump dis. |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 Oct 2014 09:30 PM |
| Add a print to see if the event is ever even invoked. |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2014 09:34 PM |
c = script.Parent.Changed:connect(function(dat) if not(dat=='Text') then c:disconnect() end; for(i=1,10,-0.1) do script.Parent.TextTransparency = i; script.Parent.TextStrokeTransparency = i; wait(); end; wait(4); for(i=1,10,1) do script.Parent.TextTransparency = (i==10) and 0 or i/10; script.Parent.TextStrokeTransparency = (i==10) and 0 or i/10; wait() end; end); |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 Oct 2014 09:36 PM |
| why are you over complicating this? |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2014 09:37 PM |
i didn't really, just made it my style. but the real problem was in the forloop. notice: 'for i = 1,-->0<--,-.1 do'
semicolons are love, semicolons are life |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 18 Oct 2014 09:39 PM |
| Nothing is wrong with that for loop |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2014 09:46 PM |
osht im an idiot. sorry. i mind-blanked and thought that was the amount of iteration. pls no hate me.
semicolons are love, semicolons are life |
|
|
| Report Abuse |
|
|
lordrambo
|
  |
| Joined: 16 Jun 2009 |
| Total Posts: 20628 |
|
|
| 18 Oct 2014 09:47 PM |
There's no reason to take other people's code and convert it to how you would write it as a preference. Also don't name your variables stuff that gives no indication to what they contain. For instance "c" and "dat". Stay away from single letter variables and acronyms in general.
Sorry if I sound annoying or w/e but it's something everyone should know. |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2014 09:48 PM |
c is short for connection dat is short for data #shorthand sir
semicolons are love, semicolons are life |
|
|
| Report Abuse |
|
|