|
| 07 Dec 2015 01:09 PM |
I can't find anything to help me understand looping....I'm trying to loop this; script.Parent.Transparency = 0 wait(.3) script.Parent.Transparency = 1 wait(.3) script.Parent.Transparency = 0 If you know of any places or can help me, thanks!
King William lll |
|
|
| Report Abuse |
|
|
Zonkman31
|
  |
| Joined: 22 Feb 2013 |
| Total Posts: 6471 |
|
|
| 07 Dec 2015 01:55 PM |
while wait() do
-- Insert Code Here--
end |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2015 02:04 PM |
while wait(.3) do script.Parent.Transparency = 1 wait(.3) script.Parent.Transparency = 0 end
Basically, this is a while loop. The loop runs every .3 seconds after its previous end.
E.g. if I put print("hello world") between while wait(.3) do & end, it would print 'hello world' every .3 seconds. |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2015 02:07 PM |
repeat wait(.3) script.Parent.Transparency = 1 wait(.3) script.Parent.Transparency = 0 until never==forever |
|
|
| Report Abuse |
|
|
|
| 07 Dec 2015 02:28 PM |
Thanks guys!
King William lll |
|
|
| Report Abuse |
|
|