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

Vector3 expected, got CFrame?

Asked by 8 years ago

Hi all! This little line of code isn't working, and I'm not sure why. Thanks for the help!

Puddle.CFrame = Torso.CFrame - CFrame.new(0, 3, 0)
0
You need to give the whole script... We can't do much without it. Also, what comes out of Output when you run the game/script? Stephenthefox 94 — 8y
0
Puddle.CFrame = Torso.CFrame * CFrame.new(0, -3, 0) SirloinBurgers 50 — 8y

1 answer

Log in to vote
7
Answered by
theCJarmy7 1293 Moderation Voter
8 years ago

You cannot add or subtract a CFrame by a CFrame. You could do what cheez55 said, or you could do this.

Puddle.CFrame = Torso.CFrame - Vector3.new(0, 3, 0)
1
Slow down I:< User#11440 120 — 8y
Ad

Answer this question