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 » Scripting Helpers
Home Search
 

Re: Super strange ._.

Previous Thread :: Next Thread 
HyroadCoder is not online. HyroadCoder
Joined: 15 Jul 2014
Total Posts: 813
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
HyroadCoder is not online. HyroadCoder
Joined: 15 Jul 2014
Total Posts: 813
18 Oct 2014 09:29 PM
When I actually need help here I never receive it. Let's bump dis.
Report Abuse
cntkillme is not online. 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
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Oct 2014 09:36 PM
why are you over complicating this?
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Oct 2014 09:39 PM
Nothing is wrong with that for loop
Report Abuse
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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 is not online. 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
KOTwarrior is not online. KOTwarrior
Joined: 13 Jun 2012
Total Posts: 4376
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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