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: Wow this amature script won't work!

Previous Thread :: Next Thread 
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
18 Nov 2010 06:50 PM
local a = Workspace.1
local b = Workspace.2
local c = Workspace.3
a.Transparency = 0.5
b.Transparency = 0.8
c.Transparency = 0.7
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Nov 2010 06:52 PM
You gotta index stuff with numbers at the beginning of their names using brackets. This also applies to stuff with spaces in their names, and things with certain symbols in their names.

local a = Workspace["1"]

Note how I dropped the period before the brackets.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
18 Nov 2010 06:55 PM
Thanks!
How did you know that?
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Nov 2010 06:55 PM
Experience? I've been scripting for a while.
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
18 Nov 2010 06:56 PM
Still didn't work....
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Nov 2010 06:58 PM
You changed all three of them?

local a = Workspace["1"]
local b = Workspace["2"]
local c = Workspace["3"]
a.Transparency = 0.5
b.Transparency = 0.8
c.Transparency = 0.7
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
18 Nov 2010 07:01 PM
Oh no peroid....
Report Abuse
flappydavid is not online. flappydavid
Joined: 03 May 2009
Total Posts: 5893
18 Nov 2010 07:02 PM
Thanks!
Report Abuse
crazypotato4 is not online. crazypotato4
Joined: 22 Feb 2010
Total Posts: 20000
18 Nov 2010 07:02 PM
Yep. But you DO need punctuation after it, for example:

Workspace["1Model"].Part

Workspace["Thing that has spaces"]:findFirstChild("PAI")
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