Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Why does it say that readyburger is not a valid member of workspace?

My script is when an npc named "Cook2" steps on a part a burger appears, but it says that readyburger is not a valid member of workspace even though it it.

local rb = game.Workspace:FindFirstChild("ReadyBurger")
if rb then
	script.Parent.Touched:Connect(function(hit)
		if hit.Parent.Name == "Cook2" then
			game.Workspace.ReadyBurger.Transparency = 0
		end
	end)
end

3 comments

0

Try checking if you have written model's name correctly.

0

I fixed it

0

if you fixed it add [Solved] to your title

1 answer

Not a Valid Member of Workspace means that it either doesn't exist or it has been moved. Make sure the part's parent is workspace or game.Workspace. Also make sure you written the name correctly.

This discussion is preserved as it was. New answers, comments, and votes are closed.