zxasqwcv3
|
  |
| Joined: 09 Jan 2009 |
| Total Posts: 106 |
|
|
| 27 Jul 2011 03:28 PM |
im trying to make a wall that "disapears" ( transparent/noncolidable) when my light turns green.... i cant figure out whats wrong.
Workspace.Starter.Wall.Transparency = 0 while (Workspace.Starter.Light1 = ("Really green")) do Workspace.Starter.Wall.Transparency = 1 Workspace.Starter.Wall.CanCollide = 1 end
Workspace.Wall Script:2: ')' expected near '=' is what the output says but im not sure what to do |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 03:36 PM |
Workspace.Starter.Wall.Transparency = 0 while Workspace.Starter.Light1.BrickColor = ("Really green") do Workspace.Starter.Wall.Transparency = 1 Workspace.Starter.Wall.CanCollide = false --Idk.. |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 03:48 PM |
Don't use bikerking's
game.Workspace.Starter.Wall.Transparency = 0 while game.Workspace.Starter.Light1.BrickColor == BrickColor.new("Really green") do game.Workspace.Starter.Wall.Transparency = 1 game.Workspace.Starter.Wall.CanCollide = false
|
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 03:51 PM |
| @Tiger you only use 2 ==`s if your using the If statment noob. |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 04:40 PM |
| @biker, be quiet, he's doing it right! >.< |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 04:41 PM |
| == is for conditional statements, not only if statements. |
|
|
| Report Abuse |
|
|
|
| 27 Jul 2011 04:49 PM |
I think this would work for both of your questions: g = game.Workspace.Starter:GetChildren() for i = 1, #g do if g[i].Name ~= "Wall" then while true do g[i].Transparency = 1 wait(5) g[i].Transparency = 0 g[i].BrickColor = BrickColor.new("Bright green") game.Workspace.Starter.Wall.Transparency = 1 game.Workspace.Starter.Wall.CanCollide = false wait(10) g[i].BrickColor = BrickColor.new("Bright Yeller") wait(40) game.Workspace.Starter.Wall.Transparency = 1 game.Workspace.Starter.wall.CanCollide = true end |
|
|
| Report Abuse |
|
|