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

Where Can I Learn CFrame?

Asked by 10 years ago

I dont really know what CFrame is. I know how to script and all. But I never got to learn CFrame. Any links to CFrame and stuff?

3 answers

Log in to vote
7
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

Check out the Wiki.

-Thank me by accepting this answer/bumping up my reputation!

0
Why would someone rate me down on this? Shawnyg 4330 — 10y
0
Thanks! I would bump up your reputation, but SOMEONE got my rank down to -5 because I answered someones question. Randomplayer121 -2 — 10y
0
Just accept this answer and it'll bump both of ours up! Shawnyg 4330 — 10y
Ad
Log in to vote
1
Answered by 4 years ago

coordinate frame

Log in to vote
0
Answered by
Hexcede 52
9 years ago

I will teach it to you! CFrame is fun once you know it! Multiplying CFrames like this:

part.CFrame = part.CFrame * CFrame.new(0.2, 0, 0) -- Moves part 0.2 studs forwards

moves it around. change it like this:

part.CFrame = part.CFrame * CFrame.new(-0.2, 0, 0) -- Moves part 0.2 studs backwards

and it goes backwards.

part.CFrame = part.CFrame * CFrame.new(0, 0.2, 0) -- Moves part 0.2 studs up

up...

part.CFrame = part.CFrame * CFrame.new(0, -0.2, 0) -- Moves part 0.2 studs down

down! It works like position but has rotation too! You can set lookvector like this:

part.CFrame = CFrame.new(part.Position, part.Position + lookVector) -- Try using the method of getting lookVector by using part.CFrame.lookVector. You can do this for any CFrame. You can get the lookVector of another part and replace lookVector with it and the part will look the same way! You can even set the cframe of a part to CFrame.new(posV3, secondPosV3) and the posV3 is the position  but the part looks at secondPosV3!

Cool huh? It's really useful too!

0
nice User#11440 120 — 8y
0
you Can use While Wait() Do ---------CFrame end WindowMall 54 — 6y

Answer this question