|
| 05 Feb 2014 01:05 PM |
I can't seem to get .Changed to work, so is there another method besides while wait() do?
I don't want to lag terribly.
fighter = game.Players.LocalPlayer wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts.Value knockouts = game.Player.LocalPlayer.leaderstats.KOs.Value
function Out() if wipeouts == 15 then if fighter.TeamColor == BrickColor.new("Bright blue") or fighter.TeamColor == BrickColor.new("Bright red") then fighter.TeamColor = BrickColor.new("Black") fighter:LoadCharacter() wipeouts = 0 knockouts = 0 end end end wipeouts.Changed:connect(Out) |
|
|
| Report Abuse |
|
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 05 Feb 2014 01:12 PM |
You can't assign a property to a variable wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts
not wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts.Value
Then just say "if wipeouts.Value == 15 then" (Same thing for KOs) |
|
|
| Report Abuse |
|
|
jd678
|
  |
| Joined: 18 Apr 2008 |
| Total Posts: 11529 |
|
|
| 05 Feb 2014 01:15 PM |
@king
wipeouts = game.Player.LocalPlayer.leaderstats.Wipeouts.Value
This actually works in a sense lol, because wipeouts then = the CURRENT Value of the Wipeouts NumberValue, but if it changes it won't' update, unless you re-tag it everytime the value changes. |
|
|
| Report Abuse |
|
|
Kingmouli
|
  |
| Joined: 28 Sep 2012 |
| Total Posts: 1292 |
|
|
| 06 Feb 2014 11:33 AM |
| ^ Yeah but here he wants to change the values right? |
|
|
| Report Abuse |
|
|