|
| 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
|
  |
| 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 |
|
|
|
| 18 Nov 2011 04:37 PM |
wait(.1) is completely valid.
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and Helper of Scripting::]- |
|
|
| Report Abuse |
|
|
asdqwefgh
|
  |
| Joined: 11 Dec 2009 |
| Total Posts: 3344 |
|
| |
|
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
|
  |
| Joined: 11 Dec 2009 |
| Total Posts: 3344 |
|
| |
|
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 |
|
|