generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: really dumb Vector question

Previous Thread :: Next Thread 
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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 is not online. nexus4345
Joined: 14 Apr 2009
Total Posts: 398
05 Sep 2011 06:41 PM
if position==Vector3.new(0,0,0)
Report Abuse
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
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
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
05 Sep 2011 06:52 PM
It's alright. We were all 'noobs' at one point.

:P
Report Abuse
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
05 Sep 2011 06:56 PM
target = ?
Report Abuse
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
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
alexnewtron is not online. alexnewtron
Joined: 15 Dec 2007
Total Posts: 1066
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
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
05 Sep 2011 07:13 PM
sorry that doesnt work...
Report Abuse
alexnewtron is not online. alexnewtron
Joined: 15 Dec 2007
Total Posts: 1066
05 Sep 2011 07:22 PM
Change 'brick' to the name of the brick.
Report Abuse
callofrobloxiamw3 is not online. callofrobloxiamw3
Joined: 28 May 2011
Total Posts: 488
05 Sep 2011 07:32 PM
I know i did but it didnt work
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image