local brick = workspace.brick
function loopityLoop()
while brick.BrickColor = BrickColor.Red() do -- The loop that will run until "brick.BrickColor" isn't red anymore! (Also "BrickColor.Red()" is the bright red color!)
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
if string.lower(key) == "q" then
local animation = Instance.new("Animation")
animation.AnimationId = "http://www.roblox.com/Asset?ID=144884906"
local animTrack = Humanoid:LoadAnimation(animation)
animTrack:Play()
end
end)
wait() -- Used so studio nor Roblox will crash!
end
end
brick.Changed:connect(loopityLoop)
game.Players.LocalPlayer:GetMouse().KeyDown:connect(function(key)
if string.lower(key) == "q" then
brick.BrickColor = BrickColor.Red()
local b2 = workspace.b2
b2 BrickColor = BrickColor.White()
Please help edit

2 comments
Your problem is line 4; You can't use a single '=' when comparing a Condition to an Argument, it requires the '==' (= means to set the Variable, == means to compare a Value to another).
Also, that script's off the Roblox Wiki, should be fixed if it's incorrect.