So when a part is touched by a player it will fade and cannot be touched, I am getting errors saying attempt to index nil with 'Connect' (line 3)
local part = script.Parent.Roof:GetChildren()
part.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
while part.Tranparency > 1 do
part.Transparency = part.Transparency - 0.001
wait(0.001)
repeat until part.Transparency == 0
end
end
end)
if part.Transparency == 0 then
part:Destroy()
end
i still have no idea if any of this will ever work but i tried

2 comments
Alright, I changed my script you can check it
lol i would just tween it