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
 

What is more efficient, better to use, less lag?

Previous Thread :: Next Thread 
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
23 Oct 2011 09:21 PM
Saying

local Part = game.Workspace.part
part.CFrame = CFrame.new(135,215,10)
part.Transparency = .5
part.BrickColor = BrickColor.new("White")

OR

_G.Part = game.Workspace.part
part.CFrame = CFrame.new(135,215,10)


2nd

_G.Part.Tranparency = .5
_G.part.BrickColor = BrickColor.new("White")

Sorry if I got this _G wrong :P new to it but still. What's better?
Report Abuse
duncan999007 is not online. duncan999007
Joined: 20 Mar 2010
Total Posts: 123
23 Oct 2011 09:23 PM
the first one, since you only have 1 script
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
23 Oct 2011 09:27 PM
Mkay, thanks.
Report Abuse
GoldenUrg is not online. GoldenUrg
Joined: 23 Aug 2009
Total Posts: 6428
23 Oct 2011 09:49 PM
Using non-local variables is slightly slower as is having a second script. Neither will be noticable unless you have 1000 of them. The bigger problem with multiple scripts is keeping them synchronized.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
23 Oct 2011 09:53 PM
Once again thanks!
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