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

How would I make a part go straight up from a part based on its orientation?

Ingrediant.CFrame = CFrame.new(0, -Ingrediant.Size.Y, 0):toObjectSpace(LastAddedIngrediant.CFrame)

The part(Ingrediant) is supposed to go straight up relative to another part's(LastAddedIngrediant's) Orientation/etc. but instead it goes straight up based on the World Axis. Help please?

1 answer

You could try something like this:

Ingrediant.CFrame = CFrame.new(Ingrediant.Position,Ingrediant.Position + LastAddedIngrediant.CFrame.lookVector) * CFrame.new(0,Ingrediant.Size.Y,0)

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