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?
Check out the Wiki.
-Thank me by accepting this answer/bumping up my reputation!
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!