I have this script, which is supposed to make the cheese visible in the tool. The cheese is not in a model within the tool, it's just in the tool. The script is as follows:
script.Parent.Touched:connect(function(h)
if (h.Parent.Name == "Bread" or "Sandwich") then
h.Parent.Name = "Sandwich"
h.Parent.cheese.Transparency = 0
h.Parent.cheese.Value.Value = 1
end
end)
It returns the error, "cheese is not a valid member of model"
What could have went wrong?

2 comments
Make sure capitalization is correct for cheese since Lua is case-sensitive. If that doesn't work, declare it is a variable using "local cheese = h.Parent:WaitForChild("cheese")"
The case sensitivity is correct, and the variable just returns the error "infinite yield possible" and does nothing.