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

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

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

4 comments

0

You need to use math.rad, not rad to convert to radians. Also, 0 orientation is the same as 0 radians.

0

I am using math.rad I defined rad to be equal to math.rad

0

Oh, didn't see that. Well, 0 radians are the same as 0. It is like doing 0 * 100 instead of 0.

0

lmao trying to edit my script i used the same method with new = Instance.new

1 answer

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

1 comment

0

OOoooOOOOOooooHHH someone made something useful

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