Here is the scripts
----Variables--------------------------
local p = script.Parent
print("Test")
print("Test.")
------------------functions--------------------------------------
function OnTouched(fall)
local h = fall.Parent:FindFirstChild("Humanoid")---Need to rmb is hit
if h ~= nil then
p.BrickColor.Color = BrickColor.new(128,255,0)-- Color Codes from: http://www.rapidtables.com/web/color/RGB_Color.htm
p.CanCollide = true
wait(3)
p.BrickColor.Color = BrickColor.new(225,0,0)
p.CanCollide = false
wait(3)
p.BrickColor.Color = BrickColor.new(128,255,0)-- Color Codes from: http://www.rapidtables.com/web/color/RGB_Color.htm
p.CanCollide = true
end
end
script.Parent.Touched:connect(OnTouched)
Thanks!

3 comments
You can use a Color3 to create a BrickColor and you can create one with r,g,b but you must /255 as it has a range from 0 - 1.
Yes you can. BrickColor.new(Color3.fromRGB(255,0,0)) --BrickColor will round the values to the nearest BrickColor of that variant.
Thanks