Need quick help with CFrame

Basically I want to be able to move the Hitbox CFrame down, Limb is the right arm of an R6 Character, I am fairly new to CFrames and tried different solutions but couldn’t get anything to work, any help would be appreciated.

Hitbox.CFrame = Limb.CFrame

CFrame is the center of the part.
If I understood correctly, you would want to move the Hitbox down?

Here is what I would do

Hitbox.CFrame = Hitbox.CFrame * CFrame.new(0, -1, 0) --Goes down by 1 stud
1 Like

Thanks for the fast reply and it worked!

1 Like

i recommend you base it off the character’s humanoidrootpart cframe, as it will not change pitch orientation regardless of the character’s orientation. I recommend you do this:

  1. Make a dummy in roblox studio (R6 since you are using R6), move the hitbox to where you want it on the character
  2. type in Roblox studio command bar
    print(workspace.Dummy.HumanoidRootPart.CFrame:Inverse() * workspace.Hitbox.CFrame)
  3. copy and paste all the numbers it gives you
  4. In the script, write:
Hitbox.CFrame = Character.HumanoidRootPart.CFrame * CFrame.new(what you copied)

it will show up exactly like you had it in roblox studio, so if you want to change the location of the hitbox, just repeat the steps :ok_hand:

1 Like

Thanks for the method, I will test it out.

1 Like