Issue With C0 Rotation

image
what i want to happen is for the gun to be rotated clockwise 90 degrees (from the angle were viewing) so it looks like im actually holding it

weld.C0 = CFrame.Angles(0,math.rad(-90),0) * CFrame.new(0,1,.5)

no matter WHAT i do to the angles, it n e v e r wants to orient correctly
it orients this script works but n e v e r c o r r e c t l y and i dont know why

1 Like

Hiya, I can help you if you’d like. I use a plugin that helps with that

image

Use this if this is the type of thing you need!

I do believe that it is 25 Robux but it is really worth it!

1 Like

Based on what I can see, I tried to recreate the position
I was able to get it to be positioned correctly with the offset:

weld.C0 = CFrame.new(0,-1,-0.5)*CFrame.Angles(math.rad(90),0,0)

weld.C0 = CFrame.new(0,-1,-0.5)
image

weld.C0 = CFrame.new(0,-1,-0.5)*CFrame.Angles(math.rad(90),0,0)
image

Basically, if you want to rotate something around a point, apply an angle before
If you want to rotate something in place where it already is, apply an angle after
These can both be combined to rotate around a point as well as rotating in place after rotating around a point, so just add * CFrame.Angles(math.rad(90),0,0) to the end of whatever youre doing

2 Likes

ok but its not a tool tho

i already have the plugin

1 Like

oh. I thought seeming as you had it in a hand it would be a tool

yeah fair assumption but the point stands

any way to help otherwise

1 Like

Have you tried just adding * CFrame.Angles(math.rad(90),0,0) to the end?
I dont see why it wouldnt work but there could be many reasons I dont see