Hi,
I am attempting to use TweenService to create a sliding door. The sliding door is a singular union, with the script inside of it. I have used the following code:
local TweenService=game:GetService("TweenService")
local Door=script.Parent
local DoorOpen={CFrame=CFrame.new(-24.261, 55.363, -13.69)}
local DoorClose={CFrame=CFrame.new(-24.261, 75.363, -13.69)}
local Db=false
local tweenInfo = TweenInfo.new(20, Enum.EasingStyle.Linear, Enum.EasingDirection.In, -1, true, 2)
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") and Db==false then
Db=true
TweenService:Create(Door,tweenInfo,DoorOpen)
end
end)
There is no errors in the output, however the door refuses to move. Any ideas?

1 comment
Thanks! Knew it'd be a silly mistake.