What is C0 and C1?

Hello Devs!

I’m wondering what is C0 and C1 and how to use them.
I readed about it in DevHub but it’s still confusing.

Let me tell you, as someone who makes scripts using C0 and C1 and motor6ds, sine waves and cframes, i would best describe it as hell. (if your new to it)

C0 is basically like the offset of a weld and C1 is basically like the offset to C0.
Confusing, i know.

local weld = aaa

weld.C0 = CFrame.new(0, 1, 0) -- the c0 is one stud above

weld.C0 *= CFrame.Angles(0, math.rad(90), 0) -- now its been rotated 90 degress

weld.C1 = CFrame.new(0, 0.5, 0) -- add c1 which makes it 0.5 studs above as 1 - 0.5 is 0.5 if you didn't know. Also, C1 is inversed so -0.5 would actually make it go to 1.5

its also best you learn about cframes too.

this is an example why its hell cause all of this code makes a simple up and down animation on ur character (without roblox animations, pure cframe and welds)

9 Likes

C0 is for Part0, C1 is for Part1, right?