Hello everybody,
So I have a question if I can go better about this. I make Theater Sets of Musicals and Shows and im Currently making a Set that is Going from Point A to Point B Via Tweenservice. Thats works Flawlessly. However the Model is supposed to turn on the Spot it Traveled to. Im Using This Script for that
local tweenservice = game:GetService("TweenService")
local Model = workspace.DgLifter
local ModelHinge = Model.PrimaryPart
local TweenStyle = TweenInfo.new(10,Enum.EasingStyle.Quad,Enum.EasingDirection.InOut,0,false,0)
local TurnTween = tweenservice:Create(ModelHinge,TweenStyle, {
CFrame = DoorHinge.CFrame * CFrame.Angles(math.rad(45),0,0)
})
script.Parent.Parent.ClickDetector.MouseClick:Connect(function()
TurnTween:Play()
end)
My Problem is that if i Click on my Button to make it Rotate, it Rotates back to its Origin Position A while Rotating, meaning it goes back to the Start. What do i do wrong here that the Model is Moving back to position A instead of Staying at Position B and Rotates?
Hope you can Help me =)
Stay Helathy and safe and thanks for your time everybody.!