Getting an un-valid member of Workspace error

Here is the error: lava1 is not a valid member of Workspace “Workspace”
and here is the code it is stated in:
game.Workspace.LavaTrigger.Touched:Connect(function()
game.workspace.lava1.omglavarisescripomgomgomgomgomgomgomgomg.Disabled = false
end)

I saw another post like this but I was still confused about it.

2 Likes
game.Workspace.LavaTrigger.Touched:Connect(function()
game.Workspace:WaitForChild("lava1").omglavarisescripomgomgomgomgomgomgomgomg.Disabled = false
end)

PLEASE FIX THAT SCRIPT NAME ;-;

The error means that ‘lava1’ is not in workspace. It is possible that you left it unanchored and it fell into the void

2 Likes

Is there not supposed to be any dots in " omglavarisescripomgomgomgomgomgomgomgomg"?

also, try looking up “lava1”, and see if it comes up.

sorry about the name, my friend thought it was funny, I will try your solution.

1 Like

Just a thought I had after looking at @PoppyandNeivaarecute post, Is this happening when you start the game, or when you hit it?

I solved it but it happen when I called for lava1’s child to be disabled = false.

1 Like

Is this happening when you start the game, or when you hit it, if so, do what he said:

I had a question, the lava thing works and i have tested it out of game, its just its not doing it when i want it to:
game.Workspace.LavaTrigger.Touched:Connect(function()

game.workspace.lava1.omglavarisescripomgomgomgomgomgomgomgomg.Disabled = false

end)

I’m using disabled so the child of lava1 is disabled until the player touched LavaTrigger

1 Like

Is omglavarisescripomgomgomgomgomgomgomgomg Disabled at the start?

Also, what is wrong?

Maybe try changing disabled to true

game.workspace.lava1.omglavarisescripomgomgomgomgomgomgomgomg.Disabled = true

Did not work, its ok if you can’t help but thanks anwyays.