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
 

how to make a brick target a brick...

Previous Thread :: Next Thread 
NinjaboySC is not online. NinjaboySC
Joined: 17 Sep 2010
Total Posts: 5738
01 Jul 2014 03:32 PM
...and then move on to another.


so i want to make a brick target multiple bricks

there is, of course, more to the script but i think these were the only lines that mattered.


if (temp2.className == "Model") and (temp2 ~= script.Parent) then
temp = temp2:findFirstChild("pos1")
if (temp ~= nil) then
if (temp.Position - pos).magnitude < dist then
torso = temp
dist = (temp.Position - pos).magnitude

help?
Report Abuse
NinjaboySC is not online. NinjaboySC
Joined: 17 Sep 2010
Total Posts: 5738
01 Jul 2014 03:46 PM
b
Report Abuse
NinjaboySC is not online. NinjaboySC
Joined: 17 Sep 2010
Total Posts: 5738
01 Jul 2014 04:32 PM
b2
Report Abuse
luap2000 is not online. luap2000
Joined: 31 May 2014
Total Posts: 43
01 Jul 2014 04:38 PM
you want the brick to move... that script only finds a player or a part to target if your copying the actual zombie script and trying to edit it keep in mind that that part of the script doesn't move the humanoid the MoveTo part at the bottom of the script does. To make bricks move I think the link below will help you

http://wiki.roblox.com/index.php?title=How_To_Make_Homing_Objects
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