why CFrame.new 2nd argument is “lookat” im trying to change the weld c0 cframe into new vectors and the 2nd CFrame.new argument is doing lookat, how to fix this?
the 2nd argument giving wrong orientation is destroying my weapon
is equipvector.value a vector3?
yes its a Vector3Value , i made those values to store vector3 informations in folder called “Config”
its not possible to give 1 cframe coordinate a vector3 value.
Hmm, this may be happening because CFrame.new basically creates a CFrame starting at argument 1 that looks at argument 2. Argument 2 is a point in space, not an orientation.
I know Orientation is different from Rotation so this still might not be right, but you can try
CFrame.new(Configs.EquipVector.Value, Configs.EquipVectors.Value + Configs.UnEquipOrientationVector.Value)
what do you mean? the cframe.new is asking for 2 vector3 first is position and 2nd is orientation, but cframe.new 2nd argument is doing lookat instead of a plain normal vector3
Maybe if you try CFreame.LookAt(pos1,pos2)?
Print the two positions to be sure
And what is not working?
CFrame.new()
has 6 Methods. thats why
If you look to the left, you will see 3/6 which is the third method out of the 6th ones, change it to 1/6 and you should see the proper method.
the 2nd argument is always lookat.
I think you want something more like this:
local rot = Configs.UnEquipOrientationVector.Value
local cf = CFrame.new(Configs.EquipVector.Value) * CFrame.Angles(rot.x, rot.y, rot.z)
i tried to put ur code, it still gives the same orientation as before
but making a blank identity would make it 0,0,0 doesnt it?
if you’re trying to change orientation of a cframe. multiply the cframe to a cframe.angles() value
i just tried this , it also didnt work, if only theres a simplier way to change weld.c0 properties without using CFrame
After researching, maybe this is what you’re looking for? (Sorry if I’m wasting your time)
local o = Configs.UnEquipOrientationVector.Value
CFrame.new(Configs.EquipVector.Value) * CFrame.fromOrientation(o.X, o.Y, o.Z)
yo glad my old thread helped someone
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.