jacob2233
|
  |
| Joined: 23 Aug 2007 |
| Total Posts: 723 |
|
|
| 18 Aug 2011 07:26 PM |
In this script I'm trying to make scripting models easier by scripting out the blocks, and so for I get two errors in this line. Am I not allowed to call a boolean and size value by just saying "size = part.Size"? how would I call the size, Anchored, CanCollide and Position?
attempt to concatenate global 'anc' (a boolean value)
attempt to concatenate global 'size' (a userdata value)
h.Text = "p.Instance.new('" ..class.. "') p.Parent = " ..parent.. " p.Name = " ..name.. " p.Position = Vector3.new(" ..position.. ") p.CanCollide = " ..cac.. " p.Anchored = " ..anc.. " p.Size = Vector3.new(" ..size.. ")" |
|
|
| Report Abuse |
|
|
|
| 18 Aug 2011 07:27 PM |
Where do you define size?
~~ In Soviet Russia, scripts write you. ~~ |
|
|
| Report Abuse |
|
|
jacob2233
|
  |
| Joined: 23 Aug 2007 |
| Total Posts: 723 |
|
|
| 18 Aug 2011 07:29 PM |
p = game.Workspace.Anybrick size = p.Size
Then in the script I later call it as " p.Size = Vector3.new(" ..size.. ") " |
|
|
| Report Abuse |
|
|
jacob2233
|
  |
| Joined: 23 Aug 2007 |
| Total Posts: 723 |
|
| |
|
jacob2233
|
  |
| Joined: 23 Aug 2007 |
| Total Posts: 723 |
|
| |
|
Apocalyps
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 816 |
|
|
| 20 Aug 2011 06:53 AM |
use the tostring() function...
like: stuff..tostring(size)..stuff |
|
|
| Report Abuse |
|
|
Apocalyps
|
  |
| Joined: 15 Feb 2009 |
| Total Posts: 816 |
|
|
| 20 Aug 2011 06:55 AM |
sorry i read too fast it should be:
p.Size = size
|
|
|
| Report Abuse |
|
|
ZeObot
|
  |
| Joined: 11 Feb 2009 |
| Total Posts: 647 |
|
|
| 20 Aug 2011 08:41 AM |
| use bool values for true and false, vector3.values for thing like size...etc. |
|
|
| Report Abuse |
|
|