Hi all,
I know there are other topics relating to this but none of the solutions seemed to work correctly in this case, so your help would be greatly appreciated :).
I am trying to rotate a gate around a certain point (the pole), but when the script runs, it does not rotate as expected.
Default State (Orientation 0, 20, -90):
Desired Position (Orientation 0, -70, -90) :
Position after script runs:
This is my current script, with the pole set as the primary part to the model the script, and the rest of the gate, is in.
local RGate = script.Parent
RGate:SetPrimaryPartCFrame(RGate.PrimaryPart.CFrame * CFrame.Angles(0, math.rad(-70), 0))
Also, the way this model moves currently is teleporting from one position to the other, but I would like it to be a smooth animation between the two.
Any help on what I am doing wrong here would be fantastic, thanks!