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)
Scottifly
(Scottifly)
September 24, 2023, 7:13am
2
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
Artzified
(Artzified)
September 24, 2023, 7:45am
4
Cola:
c1.Sludge = 1
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
system
(system)
Closed
October 8, 2023, 8:24am
7
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.