Im trying to make it to where if a brick doesn't move then it turns invisible but if it does it isn't invisible
Can you help???
1 | local brick = script.Parent |
2 | if brick then |
3 | local move = brick.Position + 1 |
4 | if not move then |
5 | brick.Transparency = 1 |
6 | else |
7 | brick.Transparency = 0 |
8 | end |
9 | end |
Okay, I'm young and not the best scripter so sorry if I'm wrong.
"if brick then" I think you have to literally say something about the brick like
if brick.BrickColor = "Bright red" then (code) end
Also, local move = brick.Position + 1
I think you have to do local move = brick.Position.Y +1 Y could be Y, Z, or X depending on which direction your saying it would move in.