so the meaning of this script is to open a door that has 2 sides like an elevator door but it only needs to open when the right card hits it the right card is 'CardT'(Tfor True) i don't now what i did wrong there is no error in the output
--If there is any question you want to ask just comment i will try to answer as fast as possible
touch = script.Parent D1 = script.Parent.Parent.Door1 D2 = script.Parent.Parent.Door2 C1 = script.Parent.Parent.Color1 C2 = script.Parent.Parent.Color2 --- D1mPos = D1.Position D1To = Vector3.new(-96.66, 4, -29.219) D2mPos = D2.Position D2To = Vector3.new(-96.76, 4, -35.068) touch.Touched:connect(function(hit) if hit.Parent == 'Card, CardT' then if hit.Parent.True == true then for ratio = 0,1,0.01 do local Endpoint1 = D1mPos:Lerp(D1To, ratio) D1.Position = Endpoint1 wait(0.0000000000000001) end for ratio = 0,1,0.01 do local Endpoint2 = D2mPos:Lerp(D2To, ratio) D2.Position = Endpoint2 wait(0.0000000000000001) end end end end)