|
| 11 Sep 2013 04:38 PM |
Search = script.Parent x = Search.BackgroundTransparency Go = script.Parent.Go run = game:GetService("RunService") while Go.Value == 1 do if x == 1 then x = x - 0.1 run.Stepped:wait(0.05) elseif x == 0 then x = x + 0.1 run.Stepped:wait(0.05) end end
All variables are defined. |
|
|
| Report Abuse |
|
|
| |
|
thepizz
|
  |
| Joined: 05 Mar 2011 |
| Total Posts: 2612 |
|
|
| 11 Sep 2013 04:54 PM |
| I'm not sure if it has much to do with your code, I have been running simple scripts and studio ends up crashing on me.. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 11 Sep 2013 05:06 PM |
| Now studio wont even update the place. Wow. |
|
|
| Report Abuse |
|
|
| |
|
|
| 11 Sep 2013 05:25 PM |
| Theres no wait(x) in your script, and you have a while loop. |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2013 05:28 PM |
| I was pretty sure run.Stepped:wait() can hold over a loop like wait() can. |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 11 Sep 2013 05:30 PM |
I've never heard of ':wait()' wait() can't be used like that I think |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2013 05:36 PM |
Search = script.Parent x = Search.BackgroundTransparency Go = script.Parent.Go run = game:GetService("RunService") while Go.Value == 1 do if Search.BackgroundTransparency == 1 then for i = 1,0,-0.1 do Search.BackgroundTransparency = i wait(0.05) end elseif x == 0 then for i = 0,1 do Search.BackgroundTransparency = i wait(0.05) end end wait(0.03) end |
|
|
| Report Abuse |
|
|
|
| 11 Sep 2013 05:37 PM |
:wait() can be used like so:
event:wait()
It waits for 'event' to fire and then continues the script. |
|
|
| Report Abuse |
|
|