An error that cant be fixed idk

an error that cant be fixed idk
the code: `local ReplicatedStorage = game:GetService(“ReplicatedStorage”)
local RemoteEvent = ReplicatedStorage:WaitForChild(“unclaim”)

local stores = {
game:GetService(“Workspace”):WaitForChild(“STORE”),
game:GetService(“Workspace”):WaitForChild(“STORE1”)
}

for _, store in pairs(stores) do
local unclaimprox = store.Door.door.door.UnclaimPrompt

RemoteEvent.OnClientEvent:Connect(function()
	unclaimprox.Enabled = true
end)

end`

and error door is not a valid member of Model "Workspace.STORE1.Door.door" - Client - LocalScript:11

local unclaimprox = store.Door.door.door.UnclaimPrompt

some part of this line isn’t correct.
Check the object path in the explorer and rewrite the path correctly. If there is no issue show an image of the explorer of this path

its correct thats the problem its saying an error but the path is correct

Could we see an image of this pathing on your Workspace that you are trying to do?

It could probably be because it doesn’t exist at the time of running the script, so you should use WaitForChild(), or FindFirstChild() to look for it.

But without seeing your workspace and how items are set up, there is nothing else anyone could suggest

i tried but its not working so yeah…

image

local unclaimprox = store:WaitForChild("Door").door.door.UnclaimPrompt --> Here

Use this instead at line 11. It uses :WaitForChild() to find the first “Door” model, and then the rest.

nope its still not working and the same error