I have a brick, and I want to make an "if then" function..
For example, if the color is Really Blue, then make the part's transparency .5. I'm not sure how to make a script detect the color... any help?
EDIT: Why doesn't this work?
Brick = script.Parent AnotherBrick = game.Workspace.TP
if game.Workspace.Screen.brickcolor.Name == "Bright green" then Brick.Touched:connect(function(part) if part.Parent.Humanoid then -- * if part.Parent.Humanoid.Health > 0 then part.Parent:MoveTo(AnotherBrick.Position) end end end)

2 comments
Thank you, but read my edited description.. I need help with the second part now
It's hard to read the way you laid it out, but I spotted a couple errors. Send me a Roblox message with the script and I'll try to help you further!