generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Wall

Previous Thread :: Next Thread 
zxasqwcv3 is not online. 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
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
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
TigerBloodd is not online. TigerBloodd
Joined: 24 Oct 2010
Total Posts: 2430
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
bikerking200 is not online. bikerking200
Joined: 11 Mar 2010
Total Posts: 5047
27 Jul 2011 03:51 PM
@Tiger you only use 2 ==`s if your using the If statment noob.
Report Abuse
Javeman2000 is not online. Javeman2000
Joined: 03 Sep 2008
Total Posts: 3027
27 Jul 2011 04:40 PM
@biker, be quiet, he's doing it right! >.<
Report Abuse
unknown89089 is not online. unknown89089
Joined: 21 Aug 2008
Total Posts: 2961
27 Jul 2011 04:41 PM
== is for conditional statements, not only if statements.
Report Abuse
kingmod123 is not online. kingmod123
Joined: 16 May 2009
Total Posts: 699
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image