Hello, I’ve been trying to index an invisible wall and turn the cancollide off but I keep getting the message ‘inviswall is not a valid member of Model’.
function touch(thing)
if thing.Parent:FindFirstChild("Humanoid") then
script.Parent.Parent.Parent.inviswall.CanCollide = true
wait(1)
local anim = TweenService:Create(part, tweenInfo, {Position = EndPosition})
anim:Play()
end
end
Here is a picture of the hierarchy. (the script is highlighted in blue)