I have a script, but it seems really blocky, and slow.
I was wondering if it would be possible to make it more efficient.
local PLT = script.Parent.Parent.Parent
local movements = 60
local speed = 0.1
local open = false
script.Parent.MouseClick:connect(function()
if open == false then
for i=1,movements do
wait(0.001)
PLT:SetPrimaryPartCFrame(PLT.PrimaryPart.CFrame + Vector3.new(0,speed,0));
end
open = true
elseif open == true then
for i=1,movements do
wait(0.001)
PLT:SetPrimaryPartCFrame(PLT.PrimaryPart.CFrame + Vector3.new(0,-speed,0));
end
open = false
end
end)

2 comments
try lerp http://wiki.roblox.com/index.php?title=Lerp
I'm pretty sure you can't Lerp models.