I need help to make a door go like this
Right now, the door do this:
here is my code.
DoorSystem.SetupGarage = function()
for _,Doors in Garages:GetChildren() do
local NewProximity = Instance.new("ProximityPrompt")
NewProximity.Parent = Doors
NewProximity.ActionText = "Open garage"
Doors:SetAttribute("Open", false)
NewProximity.Triggered:Connect(function(Player: Player)
if Doors:GetAttribute("Open") == false then
NewProximity.Enabled = false
Tween:Create(Doors, TweenInfos.GarageDoors, {Size = Vector3.new(1.24, 29, 0.77)}):Play()
Doors:SetAttribute("Open", true)
end
end)
end
end
Thank you