#Stairs becoming invisible

15 messages · Page 1 of 1 (latest)

sacred fulcrum
#
local stair = game.workspace.Stair

for _, v in pairs(stair:GetChildren()) do
    
    if v:isA("Part") then
        v.Touched:Connect(function()
            local block = workspace.Stair:GetChildren("Part")
            
            while block.Transparency < 1 do
                block.Transparency += 0.2
                task.wait(0.2)
            end
            
            block.CanCollide = false
            
        end)
    end
end
ServerScriptService.Script:9: attempt to compare nil < number
peak bolt
#

no

#
local stair = game.workspace.Stair

for _, v in pairs(stair:GetChildren()) do
    if v:IsA("Part") then
        v.Touched:Connect(function()
            local block = v
            
            while block.Transparency < 1 do
                block.Transparency += 0.2
                task.wait(0.2)
            end
            
            block.CanCollide = false
        end)
    end
end
#

yeszo

sacred fulcrum
#

To make sure I do not make the same mistake

peak bolt
#

dont have

#

arguments

#

u added argument

sacred fulcrum
#

True

peak bolt
#

getchildren also returns

#

table