Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do I fix this error when clicking a block? [Answered]

Asked by 6 years ago
Edited 6 years ago

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

0
Is "WoodP" actually a child of "WoodlogWB"? Nixvoid 12 — 6y
0
because there is no descendant inside part WoodlogWB named WoodP hellmatic 1523 — 6y
0
I don't know, How do I make it? Yosufgamer -7 — 6y
0
if u made the script index a part in workspace, why is there not a part in workspace Gey4Jesus69 2705 — 6y
View all comments (4 more)
0
I hate people that have 0 knowledge posting such "dumb" questions. I dont know if you just cant read or what. The error tells you, that the Part called "WoodP" is not a valid member oh Part. So if there is not a part in Part called "WoodP" It gives you this error. simply check and its done. jesus. This makes me so mad. You didnt even understand the answers from users on top of me. Paintertable 171 — 6y
0
Okay dad. Yosufgamer -7 — 6y
0
Also, if you ACTUALLY LOOKED AT THE PICTURE, you would see the error, you idiot. Someone else helped me figure it out though, the block named WoodP wasn't anchored. Yosufgamer -7 — 6y
0
Clearly no one even looked at my picture, don't post without looking at it. Yosufgamer -7 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

Ad

Answer this question