Hello everyone,
my problem today is that when i, through a script with tweenservice, rotate a part, any parts attached to it with weld constraints will not rotate with it. how do i fix this?
all of the other parts are parented to the part i am rotating, i am not rotating a model.
IIRC, When using tweenservice to adjust a position or a rotation of a part, it won’t bring the welds along with it. The solution to this issue is to instead tween the CFrame of the part.
How do I rotate a part with Cframe??
CFrame = CFrame.new(Pos.X, Pos.Y, Pos.Z) * CFrame.Angles(0,0,0) -- New angle here, in Radians
this doesn’t do anything.
the rotation of the knife doesn’t change whatsoever. should i show my code??
Sure. Did you change the CFrame.Angles(0,0,0) to the actual value?
local Tween1 = TS:Create(Subject, TweenInfo.new(0.5, Enum.EasingStyle.Back, Enum.EasingDirection.Out), {CFrame = CFrame.new(Pos.X, Pos.Y, Pos.Z) * CFrame.Angles(45, 45, 45)})
yes, i did change it to the value i wanted. it still will not turn. it is being welded to the right arm of the player, so you know.
whats going on?? do you know why this isnt working?