I want the handle of a vault door to rotate multiple times while the door opens. I am using tweening to open the door.
I would’ve used a HingeConstraint to rotate the handle but there is currently a bug causing it to not replicate to clients.
How can I do this?
1 Like
local TweenService = game:GetService("TweenService")
local door = script.Parent
local handle = door.Handle
local openRotation = CFrame.Angles(0, math.rad(720), 0)
local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Linear, Enum.EasingDirection.Out)
local handleTween = TweenService:Create(handle, tweenInfo, {CFrame = openRotation})
door.OpenEvent.OnServerEvent:Connect(function()
handleTween:Play()
end)
Obviously fill in the part names, but you just want a rotation to occur and play that animation multiple times before moving the door.
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.