|
| 21 Apr 2012 09:12 PM |
What it does is creates a message that counts down from 10 and then removes the message.... It'll be useful for minigames.
Instance.new("IntValue",game.Workspace) Instance.new("Message",game.Workspace) for i=10,1,-1 do wait(1) workspace.Value.Value=i workspace.Message.Text = workspace.Value.Value end workspace.Message:remove() |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2012 09:13 PM |
My* Sorry, I made a typo in the title of this thread |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
| |
|
NanoSpace
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 4789 |
|
|
| 21 Apr 2012 09:29 PM |
I'm amazed I can't understand most of this.
ಠ_ಠ |
|
|
| Report Abuse |
|
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 21 Apr 2012 09:38 PM |
@Nano, If you are being serious...
Instance.new("IntValue",game.Workspace) Creates a new value. Puts in workspace.
Instance.new("Message",game.Workspace) Creates a message. Puts in workspace.
for i=10,1,-1 do Starts at 10. Ends at 1. Goes down by 1 each time.
wait(1) 1 second pause.
workspace.Value.Value=i Make the value equal to the current value of i (starts at 10, goes down 1 each time)
workspace.Message.Text = workspace.Value.Value Displays the value's current value.
end Ends the loop- it repeats here.
workspace.Message:remove() Removes the message. |
|
|
| Report Abuse |
|
|
NanoSpace
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 4789 |
|
| |
|
ZackZak
|
  |
| Joined: 26 Jul 2009 |
| Total Posts: 2811 |
|
|
| 21 Apr 2012 09:56 PM |
Could be much more efficient.
Message = Instance.new("Message", game.Workspace); for Index = 10, 1, -1 do Message.Text = "Seconds left before I eat everyone "..Index; wait(1); end Message.Parent = nil; |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2012 09:58 PM |
| Zack, most 'first scripts' can be more efficient... |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2012 09:58 PM |
| Huh, ZackZak, yours isn't really more efficient, you know... |
|
|
| Report Abuse |
|
|
|
| 21 Apr 2012 10:01 PM |
I have successfully created a minigame! Well, the script.... The maps are only 4 blocks grouped on top of each other... |
|
|
| Report Abuse |
|
|
RA2lover
|
  |
| Joined: 09 Nov 2008 |
| Total Posts: 1254 |
|
|
| 22 Apr 2012 06:26 AM |
| your script is leaking IntValues. |
|
|
| Report Abuse |
|
|
Flurite
|
  |
| Joined: 03 Apr 2011 |
| Total Posts: 5386 |
|
| |
|
| |
|
Parthax
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 6941 |
|
| |
|
Solotaire
|
  |
| Joined: 30 Jul 2009 |
| Total Posts: 30356 |
|
|
| 22 Apr 2012 06:35 PM |
| My first script was a sword that makes you lose health for having it out. Not sure I still have it. |
|
|
| Report Abuse |
|
|
|
| 22 Apr 2012 09:17 PM |
| I just started a scripting folder, working on Advanced scripts. |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
| |
|
1Ra
|
  |
| Joined: 02 May 2010 |
| Total Posts: 2400 |
|
| |
|
|
| 23 Apr 2012 07:49 PM |
| @booing, no it has 5 scripts. |
|
|
| Report Abuse |
|
|
booing
|
  |
| Joined: 04 May 2009 |
| Total Posts: 6594 |
|
|
| 24 Apr 2012 07:14 AM |
@OP ARRR I HAD ME FIRST SCRIPT TOO |
|
|
| Report Abuse |
|
|