local Sensor1 = script.Parent.S1
local doorl1 = script.Parent.L1
function onTouched(hit)
for i = 20,0,0.01 do
doorl1:SetPrimaryPartCFrame(CFrame.new(i, 0, 0))
wait()
end
end
Sensor1.Touched:connect(onTouched)
Why doesnt this work? Help please :(

3 comments
Are you sure you have a PrimaryPart set to the model?
Yes.
Try -0.01 instead of 0.01, because if you add 0.01 to 20, it will never reach 20.