Tweening cframe angles problem

i want to make the red part follow my humanoidrootpart rotation
video: 2022-05-29 16-52-33

Can you send the script? char(30)

if input.KeyCode == Enum.KeyCode.C and equipped then
	local data = {char = char, hrp = hrp, attack = "attackC"}
	remote:FireServer(data)
	
	local rangeBlock = rs.Characters.Itadori.Fx.SkillC.Display:Clone()
	rangeBlock.Parent = debrisFolder
	rangeBlock.CFrame = data.char.HumanoidRootPart.CFrame * CFrame.new(0,-3,-1)
	local displayRange = ts:Create(rangeBlock,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Size = rangeBlock.Size + Vector3.new(0,0,15), Color = Color3.new(1, 0.333333, 0.498039),CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,-3,-9)})
	displayRange:Play() repeat wait() until cUnClick
	displayRange:Cancel()
	rangeBlock:Destroy()
end

And the server script???

ther server script does not matter its blank for now

Which line spawns the red part

local rangeBlock = rs.Characters.Itadori.Fx.SkillC.Display:Clone()

Maybe you can create a coroutine and in the coroutine make a while rangeBlock then
like while the rangeBlock is not destroy and in the wihle loop set the orientation of the hrp to the part’s orientation

ill try it now gonna answer u after that

if you need help with that tell me

i made this but it does not change anything:

	local displayRange = ts:Create(rangeBlock,TweenInfo.new(2,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{Size = rangeBlock.Size + Vector3.new(0,0,15), Color = Color3.new(1, 0.333333, 0.498039),CFrame = char.HumanoidRootPart.CFrame * CFrame.new(0,-3,-9)})
	coroutine.wrap(function()
		while rangeBlock do
			wait()
			rangeBlock.Orientation = hrp.Orientation
		end
	end)()

Hmmm that’s weird, but the part doesn’t rotate or something?

it is looking the same as in the vid

instead of changing the orientation use this:

rangeBlock.CFrame = data.char.HumanoidRootPart.CFrame * CFrame.new(0,-3,-1)

switch with:

rangeBlock.CFrame = data.char.HumanoidRootPart.CFrame * CFrame.new(0,-3,-1)

nothing changed its still the same

idk man that’s weird char(300)

edit: sorry