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: Is there a way for an object to rotate to focus on an object

Previous Thread :: Next Thread 
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
18 Jun 2017 11:27 PM
My goal is to constantly rotate towards the cframe of a part without a loop

BodyGyro doesnt work cuz it takes one cframe and rotates to that cframe


Report Abuse
Keltrin is not online. Keltrin
Joined: 01 Jan 2014
Total Posts: 2085
18 Jun 2017 11:28 PM
Without a loop?
Have you tried TweenService?
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
18 Jun 2017 11:31 PM
tweenservice needs a loop lol


Report Abuse
Keltrin is not online. Keltrin
Joined: 01 Jan 2014
Total Posts: 2085
18 Jun 2017 11:37 PM
Oh, my bad then, sorry.
Report Abuse
Integer_overflow is online. Integer_overflow
Joined: 16 Feb 2010
Total Posts: 6712
18 Jun 2017 11:38 PM
Why can you not use a loop?


Report Abuse
MidasTouched is not online. MidasTouched
Joined: 02 Dec 2016
Total Posts: 242
18 Jun 2017 11:58 PM
Also confused on why body gyro doesn't work for you.
Report Abuse
Vangief is not online. Vangief
Joined: 28 May 2017
Total Posts: 66
19 Jun 2017 12:16 AM
do this, it will work. it needs a loop

-Follow instructions tho.
1. make "a" the first part to be looking at.
2. make "b" the second part, the looker.

local a = nil
local b = nil

if a then
repeat
wait()
b.CFrame = CFrame.new(b.Position, a.Position)
until a == nil
end

--it works.

--Vangief
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
19 Jun 2017 02:30 AM
k i know how to do it with a loop thats why im asking for ### ####### # ####
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