Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

The Script for my Sliding door with touched.part don´t work ? [closed]

Asked by 5 years ago

Please help me and say why my script does not work.

script.Parent.Touched:Connect(function)
    local door1 = script.Parent.Parent.door1
    for i = 0.1, 0.8, 0.1 do
        door1.CFrame = CFrame.new(door1.CFrame.X, door1.CFrame.Y, door1.CFrame.Z + i)
        wait(0.05)
    end
    wait(2.5)
    for i = 0.1, 0.8, 0.1 do
        door1.CFrame = CFrame.new(door1.CFrame.X, door1.CFrame.Y, door1.CFrame.Z - i)
        wait(0.05)
    end
end)

Closed as Non-Descriptive by User#24403

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?