How do you make a part spin and move with your character?

Here’s a simple script for rotating a part:

local part = workspace.Part
game:GetService("RunService").Heartbeat:Connect(function()
part.CFrame = Part.CFrame * CFrame.Angles(0,1,0)
end)

But what if you wanted this spinning part to follow your character as well while it’s spinning? What would you do?

You can try modifying the script in this post:

I just typed in ‘pets’ in the search bar up top.

I don’t quite understand what that code means, i’d prefer if someone just explained how it’s done with a small sample of code as a demonstration.

Also I’d just like to say that I think that code from the link you sent me is a bit over complicating things. There’s likely a more simpler approach. I know how to move something along with a character, but making it spin and move along with the character is a different story.

What am I doing wrong? It should be spinning shouldn’t it?

game:GetService("RunService").Heartbeat:Connect(function()
	workspace.ShurikenModel:SetPrimaryPartCFrame(script.Parent.Head.CFrame * CFrame.Angles(0,math.rad(1),0))
end)