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 » Scripters
Home Search
 

Re: Mob Turning To Face Target Help

Previous Thread :: Next Thread 
kibawolf47 is not online. kibawolf47
Joined: 12 May 2012
Total Posts: 869
19 Jan 2015 09:36 AM
I Want To Make My Mobs Always Face Their Target(Which Is Just Another Humanoid). However, i don't know how to make them turn to face the target once they're found. help
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
19 Jan 2015 09:41 AM
Humanoid.WalkToPoint = player.Torso.Position

If you're using Humanoid for the mobs, then that's how most people make Humanoids walk. Maths already done for you :P
Report Abuse
kibawolf47 is not online. kibawolf47
Joined: 12 May 2012
Total Posts: 869
19 Jan 2015 09:42 AM
i don't want the humanoid to walk to them, i just want them to face them. aren't i suppose to use bodygyros? i don't know how. help
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Jan 2015 09:43 AM
BodyGyros would be easiest. Set the cframe of the BodyGyros to be CFrame.new(Character.Torso.Position, Target.Position)
Report Abuse
kibawolf47 is not online. kibawolf47
Joined: 12 May 2012
Total Posts: 869
19 Jan 2015 09:45 AM
okay i'm going to try it thanks :D
Report Abuse
kibawolf47 is not online. kibawolf47
Joined: 12 May 2012
Total Posts: 869
19 Jan 2015 10:04 AM
is it just me or does roblox not allow you to put bodygyro's into torsos?
Report Abuse
DeviousDeviation is not online. DeviousDeviation
Joined: 28 Dec 2010
Total Posts: 9306
19 Jan 2015 10:05 AM
It's just you.

⬡
Report Abuse
SLY3 is not online. SLY3
Joined: 10 Jul 2008
Total Posts: 1700
19 Jan 2015 10:05 AM
Idk, you can just use Torso.CFrame = CFrame.new(partToLook.CFrame,partToLookAt.CFrame)

That rotates the torso to look directly at the partToLookAt
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
19 Jan 2015 10:09 AM
Actually that doesn't. You made a small mistake :P
You need this.

Torso.CFrame = CFrame.new(torso.CFrame, partToLookAt.CFrame)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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