Don't know how to use Body Gyros

Hello! :slight_smile:
I was wondering how I can use Body Gyros? I quite dont udnersand how to make it face a position, or turn it, I don’t get it! What D and P? :thinking:
I suppose MaxTorque is like MaxForce.

For example, if I wanted to face up (the front surface of part) how I’ll do it?

1 Like
local part1 = game.Workspace.Part1 -- The part that will turn to face Part2
local part2 = game.Workspace.Part2
 
part1.BodyGyro.cframe = CFrame.new(part1.Position, part2.Position)

if you want it to continuously follow rotate as the other part rotates

   local part1 = game.Workspace.Part1 -- The part that will turn to face Part2
   local part2 = game.Workspace.Part2

 while wait() do
   part1.BodyGyro.cframe = CFrame.new(part1.Position, part2.Position)
end
2 Likes

Sad that CFrame.new(pos, lookat) is deprecated :frowning:

Wait it is? Since when? Wow

30 chars