UnionOperation Error

I have a part inside of a union, but I am getting this error

Sludge is not a valid member of UnionOperation “Workspace.Model.C1”

Does anyone know why? Because “Sludge” is inside of C1 even though sludge is not a union itself

c1.ClickDetector.MouseClick:Connect(function(player)
	if c1full == true then
		c1.Transparency = 1
		c1.Sludge = 1
		c1.Sludge.BrickColor = BrickColor.new("Electric blue")
		local food = game.ReplicatedStorage["Frozen Tray"]:Clone()
		food.Parent = player.Backpack
		c1full = false
	end
end)

Post a screenshot of the way you have the Union and children in the Explorer window.
Also post your script (since this is the scripting support forum). Please put 3 backticks (```) before and after your script so it formats correctly here.

Sure here is a screenshot
c2d38757321767533eb9addfffcafdda

this would raise an error, is this intentional?

I didn’t notice that, lemme try, maybe it was like that when I re-typed the script to see if it worked

That was the error, thank you!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.