Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

BrickColour is not a valid member of UnionOperation?

I know that a Union has a BrickColour but for the script I'm using won't work and has the same error (BrickColour is not a valid member of UnionOperation) in the output.

The script:

-- Local Script
local player = game.Players.LocalPlayer
game.Workspace.BloodReader.NeedleStand.ClickDetector.MouseClick:Connect(function()
	game.Workspace.Event:FireServer(player)
	player.Backpack.Collector.MovingParts.Change.BrickColour = BrickColor.new("Fossil")
end)

If anyone knows how to fix this please help.

2 answers

✓ Accepted answer

You spelled it BrickColour instead of BrickColor..

1 comment

0

Yea I knew that me being British would mess me up in scripting.

In the US, colour is spelled color, maybe you got confused with that. Instead of using BrickColour, use BrickColor .

1 comment

0

Yea.

This discussion is preserved as it was. New answers, comments, and votes are closed.