Why this handler is not working

Hi XxAwesomeDabxX.
Remember to add a wait() in the infinite loops. Otherwise it might not work, or even crash Studio.

local CollectionService = game:GetService("CollectionService")

local TaggedPart = CollectionService:GetTagged("spinning")

for _, TaggedPart in pairs(TaggedPart) do
while true do
TaggedPart.CFrame = TaggedPart.CFrame * CFrame.fromEulerAnglesXYZ(0.0,0.1,0.0)
wait(1) -- Replace 1 with the time you consider necessary.
end
end

If this still does not solve your problem, let me know.


Also if you are using “while wait() do” loops, I recommend looking at this post.