As seen in this video at 45 seconds, there is 3 hammers swinging near the end, I would like to make this in roblox.
I have the hammer that swings just fine, however it does not keep swinging, just in-case you wanted to know I am using RotateV with a weld part. https://www.youtube.com/watch?v=U6OERWwPEs8
That part the you linked is more of a spinning part than a Swinging part. I wrote script to make the part swing but now i can not rotate the part. Here is the script… “script.Parent.CFrame = CFrame.new(q.p+Vector3.new(0,script.Parent.Size.Y/2,0))CFrame.Angles(0,0,math.pi/2math.sin(math.rad(i)))*CFrame.new(0,-script.Parent.Size.Y/2,1)*CFrame.Angles(0,math.pi/2,math.pi)”
If you want the Part to swing back and forth just use @Porkloinial’s suggestion and use a HingeConstraint with Servo setting, then set the angle at +45 degrees, wait, then -45 degrees then wait again.
Those are the limits that the hinge is allowed to swing to.
You need to change the HingeConstraint’s TargetAngle with a script to move it back and forth. Make sure there is enough Torque and AngularVelocity to actually move the hinge back and forth.