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

Vector3 expected, got CFrame?

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)

2 comments

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?

0

Puddle.CFrame = Torso.CFrame * CFrame.new(0, -3, 0)

1 answer

✓ Accepted answer

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 comment

1

Slow down I:<

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