I'm trying to make this object not collide-able after it has disappeared, but it stays collidable.
local touchedpart = script.Parent
function onTouch(part)
while true do
wait(0.3)
local tptrans = touchedpart.Transparency
touchedpart.Transparency = tptrans + 0.12
end
end
touchedpart.Touched:connect(onTouch)
if touchedpart.Transparency == 1 then
touchedpart.CanCollide = false
end

3 comments
I've just tried this, i can still collide with the object.
There. I updated my answer.
Thanks, it works now :D