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

BrickColour is not a valid member of UnionOperation?

Asked by 6 years ago

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

Log in to vote
1
Answered by 6 years ago

You spelled it BrickColour instead of BrickColor..

0
Yea I knew that me being British would mess me up in scripting. oshawat00 62 — 6y
Ad
Log in to vote
1
Answered by 6 years ago

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

0
Yea. oshawat00 62 — 6y

Answer this question