1 | local HORN = script.Horn:Clone() |
2 | HORN.Parent = workspace |
3 | HORN.Orientation = Vector 3. new(- 50.33 , - 87.83 , 0 ) |
4 | local hornWeld = Instance.new( "Weld" ) |
5 | hornWeld.Parent = workspace |
6 | hornWeld.Part 0 = c.Head |
7 | hornWeld.Part 1 = HORN |
8 | hornWeld.C 0 = CFrame.new(. 08 ,. 6 ,. 6 ) |
The weld works correctly but the horn isn't rotated as i want it to be like, how do you rotate the horn even tough it's in a weld?
CFrame.Angles() is what you're going to want.
When you're setting the hornWeld.C0 add * CFrame.Angles() and set x,y,z values to what you'd like
1 | hornWeld.C 0 = CFrame.new(. 08 ,. 6 ,. 6 ) * CFrame.Angles( 0 ,math.rad( 90 ), 0 ) |