|
| 05 Aug 2011 08:29 AM |
I am getting a error on line 7...Dunno what it is?
Time = 60 players = game.Players:GetChildren()
if Time>=0 then timemsg = Instance.new("Message") timemsg.Parent = player.PlayerGui timemsg.Text = ("Time until you all Die = "...Time) print "I am Working" end
|
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:30 AM |
Time = 60 players = game.Players:GetChildren()
if Time>=0 then timemsg = Instance.new("Message") timemsg.Parent = player.PlayerGui timemsg.Text = "Time until you all Die = " .. tostring(Time) print "I am Working" end |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:35 AM |
i'm getting new error now??
')' expected(to close '(' at line 7 near 'print' |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2011 08:40 AM |
Why did you double post ?
:S
Time = 60 players = game.Players:GetPlayers() if Time >= 0 then for _,v in pairs(players) do Instance.new("Message", v.PlayerGui) end print "I am Working" end |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:45 AM |
BloxBuilder
Your Script works but can you either simplify it or tell me what every thing means?
Bit complicated for me. |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:45 AM |
| it just goes through every player (current player = v) and puts a message in their playergui |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2011 08:50 AM |
How would you set the message to countdown from 60 saying
"Time until You All Die = 'countdownnum' " |
|
|
| Report Abuse |
|
|
myrco1001
|
  |
| Joined: 17 Sep 2010 |
| Total Posts: 2574 |
|
|
| 05 Aug 2011 08:51 AM |
for i = 60, 0, -1 do print(i) wait(1) end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2011 08:53 AM |
Time = 60 players = game.Players:GetPlayers() if Time >= 0 then for _,v in pairs(players) do Instance.new("Message", v.PlayerGui) v.PlayerGui.Message.Text = coroutine.resume(coroutine.create(function() for i = Time, 0, -1 do v.Text = tostring(i).." seconds before you all die !" wait(1) end end)) end print "I am Working" end |
|
|
| Report Abuse |
|
|
myrco1001
|
  |
| Joined: 17 Sep 2010 |
| Total Posts: 2574 |
|
|
| 05 Aug 2011 08:54 AM |
'tostring(i)'
i is a number.... |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:55 AM |
| converting it into a strng, if I didn't it would have caused an error about bad concatenation thingy :P |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 08:59 AM |
Just Thought you would like to know but the game I am trying to make a script for is a game where you have to get through a obstacle course, but every 60 seconds everyone dies.So when someone gets to en they click button to stop timer.and go to lobby for next map!!
Interesting EH! |
|
|
| Report Abuse |
|
|
| |
|
myrco1001
|
  |
| Joined: 17 Sep 2010 |
| Total Posts: 2574 |
|
|
| 05 Aug 2011 09:00 AM |
for i = 60, 0, -1 do print(i.." nothing's wrong") wait(1) end |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Aug 2011 09:03 AM |
| Oh ok... Well converting to string it's not a bad thing tough, amirite? |
|
|
| Report Abuse |
|
|
|
| 05 Aug 2011 09:05 AM |
| i think im gonna give up too hard... |
|
|
| Report Abuse |
|
|