Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
|
| 25 Aug 2013 02:40 PM |
timer = script.Parent.CapTime start = 60 capturing = script.Parent.Cap
function onTouch(part) if part.Name == "BlueZone" then capturing.Value = true else capturing.Value = false end end
if capturing.Value == true then repeat timer.Value = timer.Value - 1 wait(1) until timer.Value == 1 end
if capturing.Value == false then timer.Value = start end
if timer.Value == 1 then script.Parent.Name = "AReady" end
script.Parent.Touched:connect(onTouch)
I'm novice at writing my own scripts from scratch. |
|
|
| Report Abuse |
|
|
Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
| |
|
Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
| |
|
Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
| |
|
adam1717
|
  |
| Joined: 07 May 2011 |
| Total Posts: 960 |
|
|
| 26 Aug 2013 07:21 AM |
| well what is the script for? |
|
|
| Report Abuse |
|
|
ToboboT
|
  |
| Joined: 25 Jun 2011 |
| Total Posts: 2385 |
|
|
| 26 Aug 2013 07:42 AM |
timer = script.Parent.CapTime start = 60 capturing = script.Parent.Cap
function onTouch(part) if part.Name == "BlueZone" then -- Assuming you want a human to touch it there leg or what ever won't be called this capturing.Value = true else capturing.Value = false end -- You don't need two for one if statement unless you are ending the function there
if capturing.Value == true then repeat timer.Value = timer.Value - 1 wait(1) until timer.Value == 1 end
if capturing.Value == false then timer.Value = start end
if timer.Value == 1 then script.Parent.Name = "AReady" end
script.Parent.Touched:connect(onTouch)
Other wise I think this is good :/ |
|
|
| Report Abuse |
|
|
Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
| |
|
Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
|
| 26 Aug 2013 10:54 AM |
| It's a timer system. I need it to stop if it's not touching "BlueZone", And change the Part's name. From there a script within "BlueZone" will accept it. |
|
|
| Report Abuse |
|
|
Cjslick
|
  |
| Joined: 11 Jul 2009 |
| Total Posts: 2130 |
|
| |
|