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

Why is the output telling me that the second value isn't a vector3 value?

Character.HumanoidRootPart.CFrame = CFrame.new(Character.HumanoidRootPart.Position,  (Character.HumanoidRootPart.CFrame - Character.HumanoidRootPart.CFrame.LookVector))

It's telling me that

(Character.HumanoidRootPart.CFrame - Character.HumanoidRootPart.CFrame.LookVector)

isn't a vector3 value, am i wrong that it is?

3 comments

0

Nvm i needed to change Character.HumanoidRootPart.CFrame to Character.HumanoidRootPart.Position

0

deth's answer is wrong, LookVector is a Vector3 value, you just tried subtracting cframe by another cframe, which isn't allowed.

0

CFrame - Vector3 = CFrame.

1 answer

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