I added a script a normal one in a tool that makes it CanCollide false which I want the tool to go through the wall, but if I drop it, then it goes back to CanCollide to true. I tried to make a script and I know I did a terrible job but how can I fix this?
local tool = script.Parent.Model
if tool.Dropped then
tool.CanCollide = true
elseif tool.PickedUp then
tool.CanCollide = false
end

1 comment
In the 6th line, the part (model)) is underlined red, could that be an error? Also should I use local script or a script