|
| 26 Aug 2012 07:16 AM |
repeat wait() until killstreak.Value / 5 = 1 or killstreak.Value / 5 = 2 or killstreak.Value / 5 = 3 or killstreak.Value / 5 = 4 or killstreak.Value / 5 = 5
"unexpected symbol near '='"
I think this error may be referring to the 'or', and if so, how would I get around this? |
|
|
| Report Abuse |
|
|
Bowbro
|
  |
| Joined: 25 Aug 2012 |
| Total Posts: 9 |
|
|
| 26 Aug 2012 07:17 AM |
I'm probably completely wrong, but if it's a script, shouldn't it have to go inside the workplace? Or at least have some sort of main point? I'm a noob at scripting, so if this makes no sense, just ignore it. |
|
|
| Report Abuse |
|
|
| |
|
Bowbro
|
  |
| Joined: 25 Aug 2012 |
| Total Posts: 9 |
|
|
| 26 Aug 2012 07:19 AM |
| So, a local script is something that already is in something? o: |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2012 07:20 AM |
| Sort of. LocalScripts are usually put inside of Player's BackPacks or PlayerGuis via StarterPack/StarterGui. |
|
|
| Report Abuse |
|
|
Bowbro
|
  |
| Joined: 25 Aug 2012 |
| Total Posts: 9 |
|
|
| 26 Aug 2012 07:21 AM |
| So, the script here would be if they get a kill streak with something they're holding right? (Well inside the backpack) |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2012 07:23 AM |
Mhm. I use this line to detect if someone achieves a certain amount of kills (I'd rather not explain everything.)
But I still don't know why 'or' would cause the script to malfunction, or whatever is causing it to do so, because I don't see why Lua wouldn't be able to comprehend this. I may be using the "until" statement wrong. |
|
|
| Report Abuse |
|
|
Bowbro
|
  |
| Joined: 25 Aug 2012 |
| Total Posts: 9 |
|
|
| 26 Aug 2012 07:25 AM |
| Have you tried at looking at scripts which also involve kill streaks? That's what I would do... lol |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2012 07:30 AM |
| I tend to not try to refer to free models, and in my case it stil probably wouldn't help. This is more of a syntax error. |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2012 07:32 AM |
| You put '=' and not '=='. I tink i found ur problem |
|
|
| Report Abuse |
|
|
|
| 26 Aug 2012 07:34 AM |
repeat wait() until killstreak.Value / 5 == 1 or killstreak.Value / 5 == 2 or killstreak.Value / 5 == 3 or killstreak.Value / 5 == 4 or killstreak.Value / 5 == 5
|
|
|
| Report Abuse |
|
|
|
| 26 Aug 2012 07:35 AM |
| Hey that actually worked... I thought a previous error made that invalid, but thanks. |
|
|
| Report Abuse |
|
|