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: Roblox Spin Enemys

Previous Thread :: Next Thread 
skppiy4000 is online. skppiy4000
Joined: 09 Oct 2008
Total Posts: 1945
28 Mar 2017 07:11 PM
Is there a possible way to make a enemy spin towards its current target (Look towards)
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
28 Mar 2017 07:20 PM
torso.CFrame = CFrame.new(torso.Position, target.Torso.Position)
Report Abuse
skppiy4000 is online. skppiy4000
Joined: 09 Oct 2008
Total Posts: 1945
28 Mar 2017 07:22 PM
Works, but one problem if the player jumps the bot falls back, I only want it turning side to side is this possible?
Report Abuse
Mister_Manakin is not online. Mister_Manakin
Joined: 16 Sep 2009
Total Posts: 1935
28 Mar 2017 07:47 PM
torso.CFrame = CFrame.new(torso.Position, Vector3.new(target.Torso.Position.X,torso.Position.Y,target.Torso.Position.Z))
Report Abuse
skppiy4000 is online. skppiy4000
Joined: 09 Oct 2008
Total Posts: 1945
28 Mar 2017 08:10 PM
wait(5) target = ###################### ##### # ################### while wait(0.01) do torso.CFrame=CFrame.new(torso.Position,Vector3.new(target.Torso.Position.X,torso.Position.Y,target.Torso.Position.Z)) end But when I do that the npc flys off after it starts
Report Abuse
skppiy4000 is online. skppiy4000
Joined: 09 Oct 2008
Total Posts: 1945
28 Mar 2017 08:10 PM
Ugh Player1 is the target and variable torso is script.Parent.Torso
Report Abuse
skppiy4000 is online. skppiy4000
Joined: 09 Oct 2008
Total Posts: 1945
28 Mar 2017 08:35 PM
Halp
Report Abuse
Pinkerten is not online. Pinkerten
Joined: 03 Aug 2014
Total Posts: 840
28 Mar 2017 08:36 PM
You only want it to look at it?

HRP.CFrame = CFrame.new(HRP.CFrame.p)*CFrame.Angles(0,math.pi+math.atan2(position.X,position.Z),0)
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