I have a game where there will be hundreds of helicopters with there own spinning rotor blades. What is the most efficient way to spin the blades that cause the least amount of lag? Is it animating them, using motor constraints, cframe tweening, or another way?
Animation can be good for performance than constraints. CFrame could also be good but animation is easier to make
1 Like
Try using Cframe to change the rotation and apply this to a folder containing all the rotor shafts.
So for example:
for _, HelicopterBlades in pairs(workspace.(Folder with the blades):GetChildren()) do
while wait(1) do
HelicopterBlades.CFrame = CFrame.Angles(0,math.rad(5),0)
end
end
1 Like
Also don’t do animations as they can severely lag the server
the best way in my opinion is using Motor6D HERE is a tutorial
Animations and doing it all on the client instead of the server.
2 Likes