When I made a burger tool with all the stuff,lettuce,tomato,cheese,onion,patty. I made it so u can cook the patty (That works) but, When i put the cooked patty in icp.

script:

script.Parent.Touched:connect(function(hit)

if hit.Parent.Name == "Cooked Meat" then
	print("Hit")
	hit.Bun.Transparency = 0
end

end)

(The bun is a union)

is says in the output: "Bun is not a valid member of Union Operation"

Can anyone help me?

3 comments

0

can we see the explorer?

0

The problem is that the bun is not a child of the union.

0

It's not a child, make the hit and the edited part be the same thing or use a model instead to manipulate individual parts