If the part "Ifred" is = red then it should be removing my head but it dosen't work, what did i do wrong?
(Inside a tool, localscript, the brick is called "Ifred")
script:
script.Parent.Activated:Connect(function()
if workspace.IfRed == BrickColor.new("Really red") then
game.Players.LocalPlayer.Character.Head:Remove()
else
print("Nope it's not red, puh")
end
end)
i tried if workspace.IfRed == BrickColor = BrickColor.new("Really red") but that wont work.
Help would be appreciated!

2 comments
What is IfRed? is it an object? and youre missing a then
You need to do workspace.IfRed.BrickColor, IfRed is just an object. As ayeayeCommsta mentioned, doing this in a localscript isn't going to replicate so you'll most likely want to change this to a script instead and reference Character differently