I’ve been working on making a hammer that rotates using CFrame but I don’t know how to change the pivot of my rotation. I’ve tried looking at some videos but I couldn’t find any. The script does work but it’s not rotating in the pivot I want it to.
local Hammer = game.Workspace.Hammers:GetChildren()
while true do
task.wait(0.1)
for i,v in pairs(Hammer) do
local HammerCFrame = v:GetPrimaryPartCFrame()
v:SetPrimaryPartCFrame(HammerCFrame * CFrame.Angles(0,0,math.rad(10)))
end
end
local Hammer = game.Workspace.Hammers:GetChildren()
while true do
task.wait(0.1)
for i,v in Hammer do
local HammerCFrame = v:GetPivot()
v:PivotTo(HammerCFrame * CFrame.Angles(0, 0, math.rad(10)))
end
end
I’m also really confused about what you mean by “rotates differently”.