|
| 05 Sep 2011 06:38 PM |
how would you use: if position = Vector3(0,0,0) cuz idk how youd use vector in a if statement |
|
|
| Report Abuse |
|
|
nexus4345
|
  |
| Joined: 14 Apr 2009 |
| Total Posts: 398 |
|
|
| 05 Sep 2011 06:41 PM |
| if position==Vector3.new(0,0,0) |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 06:41 PM |
local brick = game.Workspace.Brick --change brick to name of the brick
if brick.Position == Vector3.new(0,0,0) then --stuff end
|
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 06:50 PM |
| sorry for such a dumb question just didnt know if you used something besides .new when using an if statement and the wiki said nothing on it. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 06:52 PM |
It's alright. We were all 'noobs' at one point.
:P |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 06:55 PM |
um another question =/ script: if Vector3.new(34.9,19,-22.1) <= target.Position >= Vector3.new(-0.9,8.5,-41.1) then
- Workspace.Zombie.Script:43: attempt to compare two userdata values - Script "Workspace.Zombie.Script", Line 43
|
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Sep 2011 06:57 PM |
| and also im not a noob well kinda im not a noob but with scripting theres just some things iv never used before that i dont know how ot do cuz iv never had to do them. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 06:58 PM |
| its going to be for a pathfinding script so if the target(the thing its attacking)'s torso is in between those two positions then it does what follows |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 07:11 PM |
| if brick.Position == Vector3.new(34.9,19,-22.1) and brick.Position <= target.Position and brick.Position >= Vector3.new(-0.9,8.5,-41.1) then |
|
|
| Report Abuse |
|
|
| |
|
|
| 05 Sep 2011 07:22 PM |
| Change 'brick' to the name of the brick. |
|
|
| Report Abuse |
|
|
|
| 05 Sep 2011 07:32 PM |
| I know i did but it didnt work |
|
|
| Report Abuse |
|
|