Roblox Motor6D

Posted on

Roblox Motor6D opens the internal CFrame. This thing that is manipulated by the Animations once the Motor6D is being animated. By using this tool, you will be able to composite the Roblox Animations with the custom animations in Lua. A lot of users prefer this one over the C0 and C1.

If you are interested in Roblox Motor6D, here is the example of Roblox Motor6D script.

local Players = game:GetService(“Players”)

local RunService = game:GetService(“RunService”)

local localPlayer = Players.LocalPlayer

  • Rotate left shoulder joint by 90 degrees
  • as the addition to the newest animation applied

local function moveLeftArm()

    local character = localPlayer.Character

    if character then

        character.LeftUpperArm.LeftShoulder.Transform = character.LeftUpperArm.LeftShoulder.Transform * CFrame.Angles(math.rad(90), 0, 0)

    end

end)

  • Overwrite current animation for the right arm

local function moveRightArm()

    local character = localPlayer.Character

    if character then

        character.RightUpperArm.RightShoulder.Transform = CFrame.Angles(math.rad(90), 0, 0)

        character.RightLowerArm.RightElbow.Transform = CFrame.new()

        character.RightHand.RightWrist.Transform = CFrame.new()

    end

end)

RunService.Stepped:Connect(moveLeftArm)

RunService.Stepped:Connect(moveRightArm)

As explained on the page of Roblox Motor6D in Wiki Roblox, the term named Motor6D object is used to make movable joints. This one is between the two parts. It is the motor which the player characters use by default to move.

In the same place, you can see the explanation that there are some properties of Roblox Motor6D. The first property is inherited from Motor. Some of the examples are float Current Angle, float Desired Angle, and float MaxVelocity. The float Current Angle usually display the current rotation of the motor in radians. The major aim of the Desired Angle is to turn the motor to in radians. As for the MaxVelocity, you have to keep in mind that the maximum velocity the motor that can be used by the motor is also be to be used in order to reach the desired angle measured in radians per physic frame. This is about 1/60th of a second.

The second property is inherited from JoinInstance such as CFrame C0, CFrame C1, Ref Part 0, and Ref Part 1. CFrame C0 is able to be the sign of how the offset point is attached to a thing called Part 0. CFrame C1 is known as the subtracted from the C0 property to create the offset point for Part 1. Ref Part 0 is considered as the first Base Part that joint connects. As for the Ref Part 1, you can call it as the second one that joint connects.

The third property is inherited from Instance like bool Achievable, string Class Name, string Name, and Ref Parent. Bool Achievable can determine if the particular object can be cloned or saved to file. String Class Name is the term that you can use to call the unique name of this type of instance. String Name is considered as the non unique one for the object. As for Ref Parent, it is such the hierarchical parent of the object.

Beside properties, you can also find the functions and the events of Roblox Motor6D there. for further information about it, you can contact Roblox Support. Sadly, there is no phone nor email. So, your only option is to fill out the form.

Leave a Reply

Your email address will not be published. Required fields are marked *