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

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

Asked by
Mr_Pure 129
5 years ago
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?

0
Nvm i needed to change Character.HumanoidRootPart.CFrame to Character.HumanoidRootPart.Position Mr_Pure 129 — 5y
0
deth's answer is wrong, LookVector is a Vector3 value, you just tried subtracting cframe by another cframe, which isn't allowed. User#24403 69 — 5y
0
CFrame - Vector3 = CFrame. Mr_Pure 129 — 5y

1 answer

Log in to vote
1
Answered by
Mr_Pure 129
5 years ago

Solved

Ad

Answer this question