tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 01 Mar 2015 10:26 AM |
i have this script between = 30 hint =game.Workspace.Hint hint.Text = (wait(between)) wait(between)
|
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 10:27 AM |
@Title Yes
@Script waaat? Are you trying to make a countdown? |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 01 Mar 2015 10:29 AM |
| im trying to display the wait time for wait(between) |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 10:30 AM |
between = 30 hint = game.Workspace.Hint hint.Text = between wait(between)
Like that? |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 01 Mar 2015 10:36 AM |
| it wont count it still displays 30 though |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 10:45 AM |
'Are you trying to make a countdown?' You could have just said "yes".
You need to use a loop.
http://wiki.roblox.com/index.php?title=Loops#For |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 10:46 AM |
that script made my head hurt |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
| |
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 01 Mar 2015 11:06 AM |
doesn't work there has to be a way to display a wait |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 11:07 AM |
| What's your current script? |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 11:09 AM |
| wait will return the seconds it waited, which is pretty much never exactly what you specified. Displaying wait(30) will probably be a 30 with something like eight decimal places. |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 11:11 AM |
for i=1, 30 do hint.Text = 30-i wait(1) end |
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 11:12 AM |
Joe11Joe99, you can simplify that like this for i=30,0,-1 do hint.Text = i wait(1) end |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 01 Mar 2015 11:13 AM |
local between = 30 local round = 180 local zombies = game.ServerStorage.Zombies local hint = game.Workspace.Hint while true do hint.Text = (wait(between)) wait(between) print("started") local player = game.Players:GetPlayers() for i = 1, #player do player[i].Character:MoveTo(Vector3.new(-100, -164.5, 1118))--map end zombies.Parent = game.Workspace wait(round) zombies.Parent = game.ServerStorage print("ended") end
|
|
|
| Report Abuse |
|
|
|
| 01 Mar 2015 11:16 AM |
| Make sure you don't state anymore things after the loop, the script won't pick it up so you'll have to use a coroutine. |
|
|
| Report Abuse |
|
|
tekkr
|
  |
| Joined: 30 Dec 2013 |
| Total Posts: 3570 |
|
|
| 01 Mar 2015 11:19 AM |
| thank you jar and joe it works now! |
|
|
| Report Abuse |
|
|