drew8732
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 1965 |
|
|
| 13 Oct 2011 07:58 PM |
| Alright... my first post on SH and my stupidest question ever. But here I go... is there a function that makes an event go on forever? Halp, pl0x? |
|
|
| Report Abuse |
|
|
| |
|
Carbon131
|
  |
| Joined: 09 Aug 2008 |
| Total Posts: 485 |
|
|
| 13 Oct 2011 08:00 PM |
| There is loops and coroutines. |
|
|
| Report Abuse |
|
|
| |
|
drew8732
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 1965 |
|
|
| 13 Oct 2011 08:01 PM |
I don't know, say I want a brick to switch between invisible and visible. (This is just an example.)
So...
game.Workspace.Part1.Transperency = Transperency.new(5.0) game.Workspace.Part1.Transperency = Transperency.new(0) [Repeat function here]
|
|
|
| Report Abuse |
|
|
are31
|
  |
| Joined: 09 Nov 2007 |
| Total Posts: 13767 |
|
|
| 13 Oct 2011 08:03 PM |
While true do Script here wait(2) end |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2011 08:03 PM |
First of all, that wouldn't work
while wait(.5) do workspace.Part1.Transparency = .5 wait(.5) workspace.Part1.Transparency = 0 end
-[::ƧѡÎḾḠΰῩ::]- -[::Maker of stuff and breaker of combos::]- |
|
|
| Report Abuse |
|
|
drew8732
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 1965 |
|
|
| 13 Oct 2011 08:04 PM |
| Alright, so how do I apply this command into my invisible-visible script? |
|
|
| Report Abuse |
|
|
drew8732
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 1965 |
|
|
| 13 Oct 2011 08:04 PM |
Late post >.>
You guys post fast here on SH. |
|
|
| Report Abuse |
|
|
|
| 13 Oct 2011 08:05 PM |
while wait(.5) do script.Parent.Transparency = .5 or 0 end |
|
|
| Report Abuse |
|
|
drew8732
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 1965 |
|
|
| 13 Oct 2011 08:06 PM |
Thanks, guys!
~Forum closed~ |
|
|
| Report Abuse |
|
|