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: I need some help with this basic script.

Previous Thread :: Next Thread 
TheReturningWinter is not online. TheReturningWinter
Joined: 15 Oct 2011
Total Posts: 328
18 Nov 2011 04:11 PM
I'm trying to learn how to script, and I thought this kind of thing would be a good start to figuring some things out. My transparency script won't work for me though. Any help? 17 lines, extremely annoying, pretty cool thing, if it works.

while true do
wait(.1)
script.Parent.Transparency = .3
wait(.1)
script.Parent.Reflectance = .1
wait(.1)
script.Parent.Transparency = .1
wait(.1)
script.Parent.Reflectance = .3
wait(.1)
script.Parent.Transparency = .2
wait(.1)
script.Parent.Reflectance = .6
wait(.1)
script.Parent.Transparency = .4
wait(.1)
end
Report Abuse
asdqwefgh is not online. asdqwefgh
Joined: 11 Dec 2009
Total Posts: 3344
18 Nov 2011 04:36 PM
no periods before wait(1) and if you want to be total invisible it wouldnt be .1 it would be 1
even though i suck at scripting i think that might help... i dunno
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
18 Nov 2011 04:37 PM
wait(.1) is completely valid.

-[::ƧѡÎḾḠΰῩ::]-
-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
asdqwefgh is not online. asdqwefgh
Joined: 11 Dec 2009
Total Posts: 3344
18 Nov 2011 04:38 PM
it is???
Report Abuse
dragon829 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
18 Nov 2011 04:39 PM
yes it makes it wait 0.1 second so it pretty much changes instantly
Report Abuse
asdqwefgh is not online. asdqwefgh
Joined: 11 Dec 2009
Total Posts: 3344
18 Nov 2011 04:41 PM
hmm..
Report Abuse
dragon829 is not online. dragon829
Joined: 12 Aug 2008
Total Posts: 741
18 Nov 2011 04:43 PM
while true do
script.Parent.Transparency = 0.3
wait(.1)
script.Parent.Reflectance = 0.1
wait(.1)
script.Parent.Transparency = 0.1
wait(.1)
script.Parent.Reflectance = 0.3
wait(.1)
script.Parent.Transparency = 0.2
wait(.1)
script.Parent.Reflectance = 0.6
wait(.1)
script.Parent.Transparency = 0.4
wait(.1)
end

you don't NEED a 0 infront of the . but i like doing it lol
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