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: How do I make a humanoid face towards obj and do animation

Previous Thread :: Next Thread 
KingBobo23 is not online. KingBobo23
Joined: 02 Apr 2016
Total Posts: 265
03 Apr 2017 12:57 PM
I want for if theres like a incompletion,safety,or any play for the AI to just stand still but face ball and do an animation.


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
03 Apr 2017 01:02 PM
Constantly set the CFrame of the AI's HumanoidRootPart (or torso) to

local root = AI.HumanoidRootPart
local ball = workspace.Ball -- or something
while wait() do
root.CFrame = CFrame.new(root.CFrame.p,CFrame.new(ball.CFrame.X,root.CFrame.Y,ball.CFrame.Z).p)
end
Report Abuse
KingBobo23 is not online. KingBobo23
Joined: 02 Apr 2016
Total Posts: 265
03 Apr 2017 01:05 PM
How about for the animation? once the GUI says "Incompletion" on screen or "Touchdown" stuff like that.


Report Abuse
Soybeen is not online. Soybeen
Joined: 17 Feb 2010
Total Posts: 21462
03 Apr 2017 01:05 PM
Loading an animation into an NPC is a bit of a different story. You'll need an Animation Controller and review of this article
wiki.roblox.com/index.php?title=Animations#Playing_Animation_in_Non-Player_Character
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