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: can u use variables like this

Previous Thread :: Next Thread 
twerq is not online. twerq
Joined: 08 Jun 2013
Total Posts: 1057
31 May 2014 03:04 AM
[ Content Deleted ]
Report Abuse
DeSpizer27 is not online. DeSpizer27
Joined: 13 Jul 2012
Total Posts: 2679
31 May 2014 03:05 AM
Well you can call other var's inside var's, so I'm sure it would work.
Report Abuse
twerq is not online. twerq
Joined: 08 Jun 2013
Total Posts: 1057
31 May 2014 03:06 AM
[ Content Deleted ]
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
31 May 2014 03:39 AM
No you can't
Report Abuse
Marolex is not online. Marolex
Joined: 17 Dec 2012
Total Posts: 1785
31 May 2014 03:43 AM
You're close.

ws = game:GetService("Workspace")
ws.Part or whatever

this is because you're already calling game in the getservice

"*game*:GetService"

-King Scrub
Report Abuse
Basswobble is not online. Basswobble
Joined: 18 Jul 2011
Total Posts: 3249
31 May 2014 03:53 AM
ws is an object, so you can't call it through the hierarchy.

However, you can do:

ws.Part

or:

game[ws.Name].Part

Keyboard not found. Press F1 to continue.
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