|
| 19 Aug 2012 05:33 PM |
How would I write this when using the "if" condition. For example,
test1=game.Workspace.test.BodyPosition
if test1.maxForce==(0,0,0) then blah blah blah
Output:
Workspace.Breaker2.Script:3: ')' expected near ','
|
|
|
| Report Abuse |
|
|
ryster252
|
  |
| Joined: 09 Sep 2008 |
| Total Posts: 499 |
|
| |
|
| |
|
mamaguy
|
  |
| Joined: 07 Oct 2010 |
| Total Posts: 7073 |
|
|
| 19 Aug 2012 05:40 PM |
test1 = game.Workspace.test.BodyPosition
if test1.maxForce == Vector3.new(0,0,0) then --blah blah blah end |
|
|
| Report Abuse |
|
|
| |
|
|
| 19 Aug 2012 05:48 PM |
| I just checked and it still doesn't seem to work. |
|
|
| Report Abuse |
|
|
| |
|
IlIll
|
  |
| Joined: 28 Aug 2011 |
| Total Posts: 896 |
|
|
| 19 Aug 2012 07:15 PM |
...lol... if there's no output, it likely worked. replace the --blah blah blah with print("blah blah blah") if you want something to happen |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2012 07:42 PM |
"blah blah blah" was just a reference to what appears to be a boring patch of code. I didn't want to write it and you didn't want to read it.
So, can you please help me figure this out? |
|
|
| Report Abuse |
|
|
Bergan
|
  |
| Joined: 23 Nov 2007 |
| Total Posts: 4942 |
|
|
| 19 Aug 2012 07:48 PM |
I see 2 possibilities. 1. A Vector3 is needed. 2. Only one = is needed. |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2012 07:49 PM |
> 2. Only one = is needed.
No...
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 19 Aug 2012 07:52 PM |
Mama's should work.
† KMXD † |
|
|
| Report Abuse |
|
|