#Is there a proper way to assign vector3 position and rotation?
1 messages · Page 1 of 1 (latest)
imma try tht rq
** You are now Level 1! **
yeah i just noticed that
also generally i’d reccomend CFrame.fromOrientation instead of CFrame.Angles
fromOrientation usually gets it more accurate
you cant set just the position of a cframe
i think
you need to set the whole cframe
ts shit is getting more complicated with each second 🙏
you have to attach the sword to the sides of the character
depends if it is model you cn use pivot to
but cframe you have to construct a new value and cannot set the cframe to a specific locked position
okay so
let me give an example for cframe
lets say you want to set a Position of 0,10,0 and a Rotation of 90,90,0
i assume you know how to do that with Vector3
in CFrame it would be
part.CFrame = CFrame.new(0,10,0) * CFrame.fromOrientation(math.rad(90),math.rad(90),0)
now it just spawns in place where its located in replicated storage
you can't just change the Position property of a CFrame directly (like part.CFrame.Position = ...). You have to create a whole new CFrame.
** You are now Level 3! **
just do "object.CFrame = CFrame.new(newVector)"
or "object.CFrame = CFrame.new(newVector) * object.CFrame.Rotation"
it still didnt even move