|
| 27 Dec 2013 08:53 PM |
I can't test it right now..I'm ok n the phone..but anyways..
In the starter pack A localscript
Player = script.Parent.Parent while wait (0.1) do Bluekos = Workspace.bkos.Value Redkos = Workspace.rkos.Value Bluewos = Workspace.bwos.Value Redwos = Workspace.rwos.Value if Player.Character. Humanoid.Health < 1 then if Player.Character. Torso.BrickColor == BrickColor.new ("Really blue") then Bluewos = Bluewos +1 Redkos = Redkos +1 elseif Player.Character. Torso. BrickColor == BrickColor.new ("Really red") Bluekos = Bluekos +1 Redkos = Redkos +1 end end end |
|
|
| Report Abuse |
|
|
ozzzyt
|
  |
| Joined: 08 Jan 2013 |
| Total Posts: 3576 |
|
| |
|
|
| 27 Dec 2013 08:57 PM |
| Thx, that's all I wanted to hear :P |
|
|
| Report Abuse |
|
|
ozzzyt
|
  |
| Joined: 08 Jan 2013 |
| Total Posts: 3576 |
|
| |
|
wazap
|
  |
| Joined: 29 Jun 2007 |
| Total Posts: 23234 |
|
|
| 27 Dec 2013 09:08 PM |
No it wouldnt. Missing 'then' after elseif
Also
Player = game.Players.LocalPlayer --less error prone
Additionally Bluekos = Workspace.bkos Redkos = workspace.rkos Bluewos = workspace.bwos Redwos = workspace.rwos
Its smarter to always reference just the object, dont go on and use .Value I'll explain why
Bluekos = Bluekos + 1 What will this do? It wouldnt set Workspace.bkos.Value, say, its 2. It wouldnt make it 3. It'll just stay at 2. Reason being Bluekos is now just a variable that stores an integer. It wont reference the object ever again. confusing? I know.
But anyways, so here is what you do
Redefine all your stuff as mentioned above Then use
Bluekos.Value = Bluekos.Value + 1 And so forth Although I'm not 100% confident this will work eitehr, considering its a LocalScript. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 09:28 PM |
| I have used this sort of thing b4 as a local script I the starterpAck andbit worked, also thx fro pointingbout I missed 'then' and also the fact about the value, thx |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 09:29 PM |
| P.s sorry for all the typos..I'm using the phone.. |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 09:33 PM |
Thread closed..but random BUMP anyway :P |
|
|
| Report Abuse |
|
|
|
| 27 Dec 2013 11:32 PM |
Player = script.Parent.Parent while wait (0.1) do Bluekos = Workspace.bkos Redkos = Workspace.rkos Bluewos = Workspace.bwos Redwos = Workspace.rwos if Player.Character. Humanoid.Health < 1 then if Player.Character. Torso.BrickColor == BrickColor.new ("Really blue") then Bluewos.Value = Bluewos.Value +1 Redkos.Value = Redkos.Value +1 elseif Player.Character. Torso. BrickColor == BrickColor.new ("Really red") then Bluekos.Value = Bluekos.Value +1 Redkos.Value = Redkos.Value +1 end end end This is what I got noq..should qork..ill test it 2morrow |
|
|
| Report Abuse |
|
|
| |
|