is there any way i can turn this door script into a sliding door and not a teleporting door since all it does is teleport to 4 tiles away at the moment
local Door = script.Parent
local OriginalDoorPos = Door.CFrame
local Opened = false
local function Minipdoor()
if Opened then
warn("Close Door")
Door.CFrame = OriginalDoorPos
else
warn("Open Door")
Door.CFrame = Door.CFrame * CFrame.new(Vector3.new(4, 0, 0))
end
Opened = not Opened
end
script.Parent.ProximityPrompt.Triggered:Connect(function()
Minipdoor()
end)
** You are now Level 3! **