| |
|
| |
|
|
| 03 Jan 2010 07:06 AM |
while true do wait(.1) if game.Players.NumPlayers < 1 then _G.GameEnd = true end
I'll also need to see the hide n' seek script. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jan 2010 07:10 AM |
| Ending the game when there is only one player. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jan 2010 07:11 AM |
| Actually, the script I made has to be a seperate script. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 03 Jan 2010 07:13 AM |
| I cant do the it one, because thats too complicated for me to do out of game, and I also cant do the maps because of that reason too. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Jan 2010 07:15 AM |
| It would if I could see it to edit it. :P |
|
|
| Report Abuse |
|
|
| |
|
Nineza
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 2153 |
|
|
| 03 Jan 2010 07:18 AM |
@Shado, he doesn't mean if people leave, he means if IT, as in the person who is seeking, leaves the game or dies.
1. How have you stored who is it? In a variable, a local, a value, or what? (I'm not sure if you COULD store it in all these, just throwing out ideas, and I AM new to scripting. xD)
2. You need to make it something like:
if game.Players[IT] == nil then
You make it say game has ended.
for example:
if game.Players[IT] == nil then text("Game has ended",5,"Message",game.Workspace)
and after, you need to add in for it to teleport everyone to the waiting area, then you tell it to continue with the script (send it to function newGame or something. xD)
so it would be:
if game.Players[IT] == nil then text("Game has ended",5,"Message",game.Workspace) game.Workspace.HidenSeekArea1:Remove() newGame() end
That won't be EXACTLY correct, but I hope it will help you to do this. |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2010 07:18 AM |
| Yeah I'll be on. Just PM me when you get it on here. |
|
|
| Report Abuse |
|
|
Nineza
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 2153 |
|
|
| 03 Jan 2010 07:18 AM |
| :O Late post. I thought I'd be 4th to post. xD |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2010 07:19 AM |
Late post. :T
@ Nin: Ohhhh. Well that should still be in there. |
|
|
| Report Abuse |
|
|
| |
|
Nineza
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 2153 |
|
|
| 03 Jan 2010 07:20 AM |
| What do you mean it should still be in there? Do you mean it'll help solve the problem? :D |
|
|
| Report Abuse |
|
|
| |
|
Nineza
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 2153 |
|
|
| 03 Jan 2010 07:21 AM |
| And for the map script, you could make it generate a random number from 1 - [whatever number of maps you have] so, for example a random number from 1 - 7 and if it's 3, it's winter wonderland etc. ;) |
|
|
| Report Abuse |
|
|
|
| 03 Jan 2010 07:21 AM |
| Yeah. You would have to link it to the main one. I'll do that for you. |
|
|
| Report Abuse |
|
|
Nineza
|
  |
| Joined: 22 Nov 2009 |
| Total Posts: 2153 |
|
|
| 03 Jan 2010 07:22 AM |
So can I still help? xD
Wooot, over 100 posts now. My first milestone. :D |
|
|
| Report Abuse |
|
|
| |
|
| |
|