Whenever I try to click a block for scripts to run on another block it says, "WoodP is not a valid member of Part." How would I fix this?
script.Parent.ClickDetector.MouseClick:Connect(function() for i = 0, 1, .1 do game.Workspace.WoodlogWB.WoodP.Transparency = 1 - i wait(0.1) end game.Workspace.WoodlogWB.WoodP.CanCollide = true end)
That is the script I am using to do this.
Here is a picture of what is happening.
https://docs.google.com/document/d/1hesrKTd4eBBjSrFyjgjrEC8iX1u_R65eSgWCgq8xE_U
Someone helped me figure it out, if the block is already a child of the other block, but it still pops up with that error, check if the block is anchored.