#CFrame / Vector3 param issue :PivotTo

10 messages · Page 1 of 1 (latest)

modern shell
#

I've a vector p. script.Parent:PivotTo(p) throws a "Unable to cast vector3 to cframe" error

If I pass in a cframe as the parameter instead, I get an invalid argument exception "Vector3 expected, got CFrame"
What am I missing?

woven flowerBOT
#

studio** You are now Level 1! **studio

uncut galleon
#

Try using a cframe returned from GetPivot(), that might work

marble minnow
#

if you wanna use Vector3

#

use :MoveTo() instead

#

if you don’t know what CFrame is

#

CFrame is like Vector3 but with orientations (rotation) and etc which contains more info

modern shell
#

Yeah, I realized I made a mistake. Not used to languages that aren't type safe and casted the cframe to a vector at some point

#

or redefined rather