Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do i use a full CFrame value?

Im trying to "lerp" a animation with some gun scripts, i find it easy'er to work with then tweening and such. Anyways i need to fit The cframe value (Nine values) "-0.345214754, -0.429199219, -0.946374476, 0.999991834, -5.42700291e-005, 1.24573708e-005, -1.11982226e-005, 0.00594931841, 0.999978244, -5.43296337e-005, -0.999976277, 0.00594940037"

into

Right_Weld.C0 = Right_Weld.C0:lerp(________________,i)

It needs to be a cframe value

1 answer

✓ Accepted answer

Make a new CFrame value

CFrames are CFrames are CFrames.

Right_Weld.C0 = Right_Weld.C0:lerp(
	CFrame.new(-0.345214754, -0.429199219, -0.946374476, 0.999991834, -5.42700291e-005, 1.24573708e-005, -1.11982226e-005, 0.00594931841, 0.999978244, -5.43296337e-005, -0.999976277, 0.00594940037)
,i)

1 comment

0

Turns out roblox didn't want to accept it for some reason, i used a different set of values and it ran through fine

This discussion is preserved as it was. New answers, comments, and votes are closed.