I made a rig, and I’m trying to animate it, but the “body” part in the the model isn’t rotating correctly. Instead of rotating the model, it rotates the plane it’s being animated in.
Also, when rotating the rock on the top, the rock stays fixed while the rest of the body rotates around it. The rock’s joints are as follows: Part0 = Body Part1 = Rock.
-- Insert the part you want to rotate
local partToRotate = workspace.Part -- Replace "Part" with the name of your part
-- Set the rotation speed (in degrees per second)
local rotationSpeed = 90 -- Adjust the speed as needed
-- Function to continuously rotate the part
local function rotatePart()
while true do
partToRotate.CFrame = partToRotate.CFrame * CFrame.Angles(0, math.rad(rotationSpeed), 0)
wait(1/60) -- Adjust the wait time for smooth rotation
end
end
-- Call the rotatePart function
rotatePart()
This just spins it like a helicopter blade. I’m trying to make an animation in the timeline, not script rotations. I need to rotate the body to look around the world for the animation.