|
| 20 Jun 2014 07:58 PM |
| im not sure how and i am still learning how to script |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 07:59 PM |
| A for loop (Increment negative), a few waits and some method of output. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2014 08:03 PM |
script.Parent.Touched:connect(function(hit) if hit and hit.Parent and hit.Parent:FindFirstChild("Humanoid") then for i = 10, 0, -1 do wait(1) print(i) end end end
I didn't add a debounce, so it will run multiple times. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Jun 2014 08:05 PM |
| how would i make the countdown stop when a gui button is touched to stop it? |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 08:06 PM |
| With a few more complexities, values and scripts. |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 08:09 PM |
| im learning scripting i dont know what all that means |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 20 Jun 2014 09:22 PM |
it has a red line under the last end heres the output
20:21:01.499 - Script 'Workspace.Script', Line 2 20:21:01.500 - Stack End |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 20 Jun 2014 09:53 PM |
| nothing happens with the block |
|
|
| Report Abuse |
|
|
|
| 20 Jun 2014 10:02 PM |
I know this is pointless but another way to make a loop go down is by doing:
for i=10,1,-1 do print(tostring(i)) --just an example end |
|
|
| Report Abuse |
|
|