TweenService: Right Leg tweens to the wrong CFrame goal?
Asked by
0te 35
4 years ago
01 | local Weld = Instance.new( "Weld" , Player.Character:FindFirstChild(currentFoot)) |
02 | Weld.Part 0 = Player.Character:FindFirstChild( 'Torso' ) |
03 | Weld.Part 1 = Player.Character [ currentFoot ] |
04 | if currentFoot = = 'Right Leg' then |
05 | footToActivate.Value = 'Right Leg' |
08 | footToActivate.Value = 'Left Leg' |
11 | sendInfoToServer:FireServer(currentFoot, RightCFrame, LeftCFrame, module.Duration) |
13 | local tween = TweenService:Create(Weld, tweenInfo, { C 1 = CFrame.new( 0.5 , - 1.5 , 0 ) * CFrame.fromEulerAnglesXYZ( 0 , 0 , 0 ) } ) |
Good afternoon, I have this weld/tween hybrid script and the tween and weld works fine. However, in the {goal} part of the tween, the Cframe is not going to the default roblox character position.
And instead it tweens to this position:
https://prnt.sc/wbjujw
As you can see the angle of the leg doesn't change back to the default even though I put CFrame.fromEulerAnglesXYZ(0, 0, 0). And the position is going in to the torso???? But CFrame.new(0.5, -1.5, 0) not CFrame.new(0, 0, 0).
Any help is very much appreciated.