Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Learning to lerp kind of stuck on knowing what to put. Can someone help with this?

Asked by 7 years ago
Edited 7 years ago

Trying to lerp what would I put inside the parenthesis if I'm trying to lerp the C0 of a part? Ignore the disorganization of the script if you can.

local p = game.Players.LocalPlayer
local char = p.Character
local rad = math.rad
local hum = char.Humanoid
---------------------------------------------------
local LeftUpperArm = char.LeftUpperArm
local LeftShoulder = char.LeftUpperArm.LeftShoulder
local LeftLowerArm = char.LeftLowerArm
local LeftElbow = char.LeftLowerArm.LeftElbow
--------------------------------------------------------
local LeftUpperLeg = char.LeftUpperLeg
local LeftHip = char.LeftUpperLeg.LeftHip
local LeftLowerLeg = char.LeftLowerLeg
local LeftKnee = char.LeftLowerLeg.LeftKnee
----------------------------------------------------------
local RightUpperArm = char.RightUpperArm
local RightShoulder = char.RightUpperArm.RightShoulder
local RightLowerArm = char.RightLowerArm
local RightElbow = char.RightLowerArm.RightElbow
----------------------------------------------------------
local RightUpperLeg = char.RightUpperLeg
local RightHip = char.RightUpperLeg.RightHip
local RightLowerLeg = char.RightLowerLeg
local RightKnee = char.RightLowerLeg.RightKnee
----------------------------------------------------------
local UpperTorso = char.UpperTorso
local LowerTorso = char.LowerTorso
local Root = char.LowerTorso.Root
--------------------------------------------
local Head = char.Head
local Neck = char.Head.Neck
local RootPart = char.HumanoidRootPart
local LeftHand = char.LeftHand
local RightHand = char.RightHand
local LeftFoot = char.LeftFoot
local RightFoot = char.RightFoot
---------------------------------------------
local v3 = Vector3.new
local ns = NumberSequence.new
local new = Instance.new
local nr = NumberRange.new
local bc =BrickColor.new
local UpperTorso = char.UpperTorso
local Waist = char.UpperTorso.Waist
for i = 1,100 do
    LeftShoulder.C0 = LeftShoulder.C0:lerp(CFrame.new(LeftShoulder.C0.p)*CFrame.Angles(rad(0),rad(0),
rad(0)),.0) --LeftUpperArm
  wait()
end
0
You need to use math.rad, not rad to convert to radians. Also, 0 orientation is the same as 0 radians. hiimgoodpack 2009 — 7y
0
I am using math.rad I defined rad to be equal to math.rad SacredEden 10 — 7y
0
Oh, didn't see that. Well, 0 radians are the same as 0. It is like doing 0 * 100 instead of 0. hiimgoodpack 2009 — 7y
0
lmao trying to edit my script i used the same method with new = Instance.new DarkerThanBlack20 -11 — 7y

1 answer

Log in to vote
0
Answered by 7 years ago

its degrees so if u put 90 it will rotate 90 degrees btw i see u editing my script from r15 goku xD

0
OOoooOOOOOooooHHH someone made something useful greatneil80 2647 — 7y
Ad

Answer this question