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

Can somebody tell me whats wrong with my code?

Asked by 9 years ago

Please help

local DL = script.Parent.sdsd

Game.Workspace.k.Teknikk.DoorSensorInn.Sensor.Touched:connect(function(p)
    if p~= nil then
        for L=1, #DL do
            DL[L].Transparency = "0.5"
            DL[L].CanCollide = true
        end
        wait(2)
        for L=1, #DL do
            DL[L].Transparency = "0"
            DL[L].CanCollide = false
        end
    end
end

Answer this question