billwiw
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 2765 |
|
|
| 23 Sep 2011 09:48 PM |
open = game.Workpace.Open closed = game.Workspace.Closed Alert = script.Parent time = 50
while true do open.CanCollide = true open.Transparency = 0 closed.CanCollide = false closed.Transparency = 1 Alert.Text = ("Reinforcements come in : "..time..) for i = 1, 50 do wait(1) time = time - 1 script.Parent.Text = tostring(time) end if time == 0 then open.CanCollide = false open.Transparency = 1 closed.CanCollide = true closed.Transparency = 0 Alert.Text = "Reinforcements have arrived!" wait(10) end end
Ive made a mistake but I dont know where it when wrong :L |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
| |
|
billwiw
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 2765 |
|
|
| 23 Sep 2011 09:54 PM |
| The output wont run at all. I think I have the scripting and items semi correct. |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 23 Sep 2011 09:55 PM |
| What is it doing vs. what it's supposed to do? |
|
|
| Report Abuse |
|
|
billwiw
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 2765 |
|
|
| 23 Sep 2011 09:58 PM |
| What its doing right now. Nothing / Suppose to "open a door" for players to charge, with a timer of when the next landing is. |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 23 Sep 2011 10:00 PM |
| There is no wait time between when the door opens and when the door closes...you probably need to fix that :P |
|
|
| Report Abuse |
|
|
billwiw
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 2765 |
|
|
| 23 Sep 2011 10:03 PM |
if time == 0 then
Is that what you mean?
Or should I just simplify it by seperating the doors into a new part of the script? |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 23 Sep 2011 10:05 PM |
open.CanCollide = false open.Transparency = 1 --no time between opening and closing? closed.CanCollide = true closed.Transparency = 0 |
|
|
| Report Abuse |
|
|
billwiw
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 2765 |
|
|
| 23 Sep 2011 10:07 PM |
| I think I have a solution. Let me try it out. |
|
|
| Report Abuse |
|
|
blockoo
|
  |
| Joined: 08 Nov 2007 |
| Total Posts: 17202 |
|
|
| 23 Sep 2011 10:08 PM |
| Derp, I read it wrong...I'm too tired to be doing this Q_Q |
|
|
| Report Abuse |
|
|
billwiw
|
  |
| Joined: 03 Sep 2008 |
| Total Posts: 2765 |
|
| |
|