So I’m trying make sword model rotate, I’ve set primarypart and cframe but this happens:
https://gyazo.com/624b8d1c0fd1df3347b50859fd5a093e
But this is what I want to happen:
https://gyazo.com/abf8a403f57951f1f015a3a2dc9f6b8e
Its broken and I don’t know why, here is the script
I tried rotating each part at a time but came out with this:
https://gyazo.com/d6c05e099eb84e95e4fff01b92c752d9
Here is the script,
script.Parent.PrimaryPart = script.Parent.H
script.Parent:SetPrimaryPartCFrame(script.Parent.H.CFrame)
while wait(0.081) do
for i,v in pairs(script.Parent:GetChildren()) do
if v:IsA("Part") or v:IsA("MeshPart") and v.Name == "H" then
v.Orientation = v.Orientation + Vector3.new(0,1,0)
print("rot")
end
end
end