Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

My burger bun that is a union, wont turn the transparency to 0 it makes an error?

Asked by 6 years ago

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?

0
can we see the explorer? creeperhunter76 554 — 6y
0
The problem is that the bun is not a child of the union. hiimgoodpack 2009 — 6y
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 Viking359 161 — 6y

Answer this question