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

How to add to the position of a part or the CFrame of a part ?

hum.CFrame = part.Parent.ledge.CFrame + CFrame.new(0,5,0)

I want to add to the CFrames value of part.Parent.ledge to 5 at Y but I don't know how to addition with CFrames.

2 answers

hum.CFrame = part.Parent.ledge.CFrame + Vector3.new(0,5,0)

You don't do addition with CFrames to my knowledge. You multiply them and it's the same as addition.

Sayer80's answer is also correct. For more information see below:

CFrame Math Operations

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