So I made a tween service door but for some reason it changes its orientation while opening and it starts opening the wrong way.
local model = script.Parent.Parent
local door = model.Door
local TweenService = game:GetService("TweenService")
local scanner = script.Parent
local info = TweenInfo.new(
2,
Enum.EasingStyle.Exponential,
Enum.EasingDirection.Out,
0,
false,
0
)
local drzwizam = {CFrame = CFrame.new(33.95, 3.49, 24.98)}
local drzwiodw = {CFrame = CFrame.new(33.95, 3.49, 31.462)}
local tweenotw = TweenService:Create(door, info, drzwiodw)
local tweenzam = TweenService:Create(door, info, drzwizam)
scanner.Touched:Connect(function(card)
if card.Name == "Handle" and card.Level.Value == 1 then
print("gud card")
tweenotw:Play()
wait(1)
tweenzam:Play()
end
end)
If you have any idea of why this is happening then please respond.

1 comment
Did you anchored the door ?