Make CFrame Faster

Hello everybody. Is there any way to make CFrame faster? For example opening a door is pretty slow, and I want to make it faster. I tried everything. Here is some of my code:

for C = 1, Increment do
LGate.PrimaryPart = LGate.hinge
RGate.PrimaryPart = RGate.hinge								
LGate:SetPrimaryPartCFrame(LGate.PrimaryPart.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(90/Increment),0))
RGate:SetPrimaryPartCFrame(RGate.PrimaryPart.CFrame * CFrame.fromEulerAnglesXYZ(0,math.rad(-90/Increment),0))

All help would be appreciated! :smiley:

Instead of setting the CFrame many times, use TweenService. Basically, TweenService is a service that smoothly “animates” things. Once you learn TweenService, weld all the parts together with weld constraints, unanchor all the parts except for the main part, then tween the main part.


Thank you so much! :smiley: (30 chars)