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
Try checking if you have written model's name correctly.
I fixed it
if you fixed it add [Solved] to your title