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 :/ |