You can write your topic however you want, but you need to answer these questions:
What do you want to achieve? Keep it simple and clear!
for the part to spin smoother
What is the issue? Include screenshots / videos if possible!
part will spin smooth but once humanoids come near/at it, it begins to lag/stutter
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
tried “CFrame.fromEulerAnglesXYZ(0,0.1,0)” and "CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 0.1, 0) "
Is there a better tool for having parts spin?
while true do
script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(0, 00.1, 0)
wait()
end
The zombies uses a loop too and its yielding the spinning part while loop? or its due to NetworkOwnership changing?
That spinning loop its server or client sided?
You tried using a RunService step instead of a while loop? or maybe TweenService?
local PartCFrame = workspace.Part
while (true) do
PartCFrame.CFrame = PartCFrame.CFrame * CFrame.fromEulerAnglesXYZ(0, 0.1, 0) -- x / y / z
wait(0.01)
end
Or:
I recommend using an animation that you make yourself, this causes the animation in an AnimationController to run unprocessed by the GPU but by the KeyFrame Server, but if you want to do it by script this is the script, but it will be lagged if there is any reason to get arrested.