How to rotate this tower model on y axis.
This goin back and forth and not doin the whole rotation
function OnR()
HoldingTower:PivotTo(HoldingTower:GetPivot()*CFrame.Angles(0,math.rad(90),0))
end
How to rotate this tower model on y axis.
This goin back and forth and not doin the whole rotation
function OnR()
HoldingTower:PivotTo(HoldingTower:GetPivot()*CFrame.Angles(0,math.rad(90),0))
end
nvm i just watched the video i’m not sure whats going on
the pivotTo is probably affecting it, try this:
HoldingTower:SetPrimaryPartCFrame(HoldingTower.HumanoidRootPart.CFrame * CFrame.Angles(0,math.rad(90),0)
Looks like it’s rotating 90 on the y each time.