Is this in a model? If so, it won't work.
x=7
script.Parent.Touched:connect(function()
if x > 0 then
script.Parent.Door.Transparency = 1
script.Parent.Door.CanCollide = false
x = x + 1
elseif x < 0 then
script.Parent.Door.Transparency = 0
script.Parent.Door.CanCollide = true
end
end)
† KMXD † |