|
| 06 Aug 2011 01:15 PM |
Ok, I'm trying to make a minigame place, but can't figure out what's wrong with this script. And yes this is just a part of it. Ok, what wrong thing you will be looking for is after the 13th line, where it says wait(1), it's supposed to move the characters back into the lobby. Yet, nothing happens no matter how long the people stay. And yes, I'm a very beginnning scripter, so I'm not very certain of what exactly I'm doing. Any help would be appreciated.
msg.Text = "...3..." wait(1) msg.Text = "..2.." wait(1) msg.Text = ".1." wait(1) msg.Text = "Begin!" wait(1) player[i].Character:MoveTo(Vector3.new(-154, 1.7, 53)) msg:remove() minigame3 = game.Lighting.Minigame3 minigame3.Parent = game.Workspace sword.Parent = player[i].Backpack wait(1) msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = "Winner(s)!" wait(3) msg:remove() game.Workspace.Minigame3.Parent = game.Lighting m = math.random(1, 7) end |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 01:19 PM |
Player is not referenced, make it: player = game.Players:GetChildren() |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 01:21 PM |
| Do I put that line after wait(1)? |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 01:22 PM |
You Notice The Game Only Lasts 1 Second. Try This
msg.Text = "...3..." wait(1) msg.Text = "..2.." wait(1) msg.Text = ".1." wait(1) msg.Text = "Begin!" wait(1) minigame3 = game.Lighting.Minigame3 minigame3.Parent = game.Workspace player[i].Character:MoveTo(Vector3.new(-154, 1.7, 53)) msg:remove() sword.Parent = player[i].Backpack wait(120) --Now The Game Lasts 2 Mins msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = "Winner(s)!" wait(3) msg:remove() player[i].Character:MoveTo(Vector3.new(-154, 1.7, 53)) --Change Vector3 wait(2) game.Workspace.Minigame3.Parent = game.Lighting m = math.random(1, 7) end |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 01:23 PM |
And You Have To Add player = game.Players:GetChildren() In The Begining |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 01:28 PM |
| I know it's one second, that's something else I noticed but thanks anyhow. and I have that line in there, so still, thanks. |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 01:29 PM |
| @dirk, where in the beginning, because it looks like something that I don't think I need... |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 01:30 PM |
| Copy The Top Portion Of Your Script |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 01:33 PM |
| Wait, everything works up until when it should get the players back into the lobby. So I just need to put the players= (GetChildren) or whatever it is you said and put it after the wait(1) that I have correct? And yes, I'm going to change that time. |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 01:34 PM |
| Did U Try Mine That I Did For You Cause U Had U Get Teleported Then A Map Shows Up Then After The Game It Removes It. |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 01:35 PM |
Use This,
msg.Text = "...3..." wait(1) msg.Text = "..2.." wait(1) msg.Text = ".1." wait(1) msg.Text = "Begin!" wait(1) minigame3 = game.Lighting.Minigame3 minigame3.Parent = game.Workspace player[i].Character:MoveTo(Vector3.new(-154, 1.7, 53)) msg:remove() sword.Parent = player[i].Backpack wait(120) --Now The Game Lasts 2 Mins msg = Instance.new("Message") msg.Parent = game.Workspace msg.Text = "Winner(s)!" wait(3) msg:remove() player[i].Character:MoveTo(Vector3.new(-154, 1.7, 53)) --Change Vector3 wait(2) game.Workspace.Minigame3.Parent = game.Lighting m = math.random(1, 7) end
i g2g so anymore questions ill answer later |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 06:51 PM |
| Okay, so when I change the second Vector3 to where I want them to go in the lobby, it should teleport all living players to the lobby? |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 07:46 PM |
| It Acually Teleports Every Player To 1 Position, But It Dosent Make A Difference, They'll All Be In The Lobby |
|
|
| Report Abuse |
|
|
|
| 06 Aug 2011 08:48 PM |
| Yeah, sorry, that's what I meant. I've tested your script and it's working! Thanks! |
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 06 Aug 2011 10:52 PM |
| No Problem, Just Message Me Next Time with ur problems and ill help u personally! |
|
|
| Report Abuse |
|
|
|
| 07 Aug 2011 05:04 PM |
| Ok, I sure will because it seems you know what you're doing! |
|
|
| Report Abuse |
|
|