|
| 16 Feb 2012 10:44 AM |
Hint = Instance.new("Hint") Hint.Parent = Workspace repeat Hint.Text = "Two or more players needed to play Paintball!" until #game.Players:GetChildren() >= 1
Hint.Text = "Welcome to paint ball, Loading..." wait(2) for i = 0, 100, math.random(1, 7) do wait(math.random(0.5, 1)) Hint.Text = "Welcome to paint ball, Loading "..i.."% Done." Ready = true end
while true do if Ready = true then Map = game.Lighting.Maps:GetChildren(math.random(1, %game.Lighting.Maps)) Map.Parent = Workspace Map:MakeJoints() for i, v in ipairs (game.Players:GetChildren(IsAlive) do v.Value = true else end end end
for i, v in ipairs (game.Players:GetChildren(IsAlive) do Ready = false Alive = i if v.Value = false then Alive = Alive - 1 if Alive = 0 then Hint.Text = "No players are alive, All players have failed" end end end
I cant get an output as I cant open Test and it would not be possible. But could you please fix all the problems. And add some things I forgot that might be needed,
Thanks, Ford. |
|
|
| Report Abuse |
|
|
pighead10
|
  |
| Joined: 03 May 2009 |
| Total Posts: 10341 |
|
|
| 16 Feb 2012 10:55 AM |
| And what are the problems? |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 10:56 AM |
| He can't get an output to test what's wrong/debug, I guess. |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 11:14 AM |
It just errors, Can anyone test it and debig it? Then fix it? |
|
|
| Report Abuse |
|
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 16 Feb 2012 11:21 AM |
| What is the point of fake loads? |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 11:23 AM |
I dont know… I probbaly shall remove them. But I nee help! |
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Feb 2012 11:30 AM |
I managed to get output!; Thu Feb 16 17:29:54 2012 - Workspace.Script:14: 'then' expected near '=' Thu Feb 16 17:29:54 2012 - Workspace.Leaderboard:6: 'end' expected (to close 'function' at line 1) near '' |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 16 Feb 2012 12:19 PM |
Simple enough to fix.
put a then add an end |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 12:38 PM |
Hint = Instance.new("Hint", game.Workspace) repeat Hint.Text = "Two or more players needed to play Paintball!" until #game.Players:GetChildren() >= 1
Hint.Text = "Welcome to paint ball, Loading..." wait(2) for i = 0, 100, math.random(1, 7) do wait(math.random(0.5, 1)) Hint.Text = "Welcome to paint ball, Loading "..i.."% Done." Ready = true end
while true do if Ready == true then Map = game.Lighting.Maps:GetChildren(math.random(1, #game.Lighting.Maps)) Map.Parent = game.Workspace Map:MakeJoints() for i, v in ipairs (game.Players:GetChildren(IsAlive) do v.Value = true else -- did you want to put any code here? ;O end end wait(1) end
for i, v in ipairs (game.Players:GetChildren(IsAlive) do Ready = false Alive = i if v.Value == false then Alive = Alive - 1 if Alive == 0 then Hint.Text = "No players are alive, All players have failed" end end end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 16 Feb 2012 01:31 PM |
Try:
Hint = Instance.new("Hint") Hint.Parent = Workspace repeat Hint.Text = "Two or more players needed to play Paintball!" until game.Players.NumPlayers >= 1 Hint.Text = "Welcome to paint ball, Loading..." wait(2) for i = 0, 100, math.random(1, 7) do wait(math.random(0.5, 1)) Hint.Text = "Welcome to paint ball, Loading "..i.."% Done." Ready = true end while true do if Ready then Map = game.Lighting.Maps:GetChildren(math.random(1, %game.Lighting.Maps)) Map.Parent = Workspace Map:MakeJoints() for i, v in ipairs (game.Players:GetChildren(IsAlive) do v.Value = true else end end end for i, v in ipairs (game.Players:GetChildren(IsAlive) do Ready = false Alive = i if not v.Value then Alive = Alive - 1 if Alive == 0 then Hint.Text = "No players are alive, All players have failed" end end end
?
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 02:01 PM |
Error's
Unexpeted symbol near ? bad arguement. |
|
|
| Report Abuse |
|
|
|
| 16 Feb 2012 02:04 PM |
Did you add the question mark...?
† KMXD † |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
pighead10
|
  |
| Joined: 03 May 2009 |
| Total Posts: 10341 |
|
|
| 18 Feb 2012 09:38 AM |
| Did you write this script yourself? If you did, then you should be able to use the output to easily fix the problems yourself. It describes the problems for you. |
|
|
| Report Abuse |
|
|