tigerr666
|
  |
| Joined: 13 Aug 2009 |
| Total Posts: 1665 |
|
|
| 15 Sep 2012 01:59 PM |
So I made this short laser tag game script (not finished, trying to test) and it never works. And says nothing in the output. What I mean is, it doesn't generate anything from lighting, or show any messages. Can anyone help? Heres the script:
while true do wait(3) p = game.Players:GetChildren() for i = 1, #p do w = game.Workspace:GetChildren() for i = 1, #w do l = game.Lighting:GetChildren() for i = 1, #l do local m = math.random(1,2) local msg = Instance.new("Message") msg.Parent = w[i] wait(3) if m == 1 then msg.Text = "Loading field..." wait(1) l[i].LHills:clone().Parent = w[i].Maps --This doesn't work, any one know how to fix? msg.Text = "Players will now be teleported!" wait(2) p[i].Character:MoveTo(Vector3.new(943.6, 927.2, 1383)) wait(1) l[i].WeaponGui:clone().Parent = p[i].PlayerGui wait(4) p[i].PlayerGui.WeaponGui:remove() msg.Text = "The game will last 3 minutes! Get as many kills as you can!" wait(4) msg:remove() wait(200) w[i].LHills:remove() end if m == 2 then l[i].LFlats:clone().Parent = w[i].Maps msg.Text = "Players will now be teleported!" wait(2) p[i].Character:MoveTo(Vector3.new(943.6, 875.2, 1383)) wait(1) l[i].WeaponGui:clone().Parent = p[i].PlayerGui wait(4) p[i].PlayerGui.WeaponGui:remove() msg.Text = "The game will last 3 minutes! Get as many kills as you can!" wait(4) msg:remove() wait(200) w[i].LFlats:remove() end end end end end
|
|
|
| Report Abuse |
|
|
tigerr666
|
  |
| Joined: 13 Aug 2009 |
| Total Posts: 1665 |
|
| |
|
bob354293
|
  |
| Joined: 26 Oct 2008 |
| Total Posts: 2609 |
|
|
| 15 Sep 2012 02:11 PM |
| I would be able to fix this, but i hasnt scripted in like a year, sowweh :( |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
tigerr666
|
  |
| Joined: 13 Aug 2009 |
| Total Posts: 1665 |
|
|
| 15 Sep 2012 02:27 PM |
I fixed it. At the beggining, I had to put "msg.Parent = nil" Its still extremely glitchy though =/ |
|
|
| Report Abuse |
|
|
Cat4044
|
  |
| Joined: 20 Jul 2012 |
| Total Posts: 3 |
|
|
| 17 Sep 2012 12:15 PM |
| Hi My Script Isnt Working... I Put In My Name Where Its Supposed To (Im Doing Admin Script) And I Save It And Go On Play And No Admin :( What Do I Do? |
|
|
| Report Abuse |
|
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 17 Sep 2012 01:28 PM |
| You Stop Capitalizing Every Word, that's what you do. |
|
|
| Report Abuse |
|
|