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 |
|
|
|
| 23 Oct 2011 09:23 PM |
| the first one, since you only have 1 script |
|
|
| Report Abuse |
|
|
miz656
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|
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
|
  |
| Joined: 19 Jul 2010 |
| Total Posts: 15336 |
|
| |
|