kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 03:11 AM |
Is there a way i can type: print("Test" .. game.Workspace.Model.Archivable ) Without this error:
04:09:56 - print("Test" .. game.Workspace.M:1: attempt to concatenate field 'Archivable' (a boolean value) 04:09:56 - Script "print("a" .. game.Workspace.M", Line 1 04:09:56 - stack end
If so, please let me know.
I need this badly XD
|
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 03:12 AM |
| The focus is getting Test and the value on the exact same output line |
|
|
| Report Abuse |
|
|
| |
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 03:15 AM |
That would accomplish?
An If statement wouldn't change anything. |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2012 03:17 AM |
| Yes it would, depends what you are trying to do. |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
| |
|
|
| 30 Jul 2012 03:20 AM |
Well, if you're trying to make it print true or false then do this:
if game.Workspace.Model.Archivable then print("Test true") elseif not game.Workspace.Model.Archivable then print("Test false") end |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 03:33 AM |
Brilliant, but I'm using a similar line for Vector3, which is a problem.
|
|
|
| Report Abuse |
|
|
|
| 30 Jul 2012 03:34 AM |
| kd, I swear to God you're (bloody) British. I stole bloody from James Bond.. :3. |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 03:41 AM |
| Close.... I'm american XDXD |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2012 03:43 AM |
| Wow....... No American says brilliant besides you, XD! |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 10:28 AM |
Last night I thought of an idea.
Why not transform the CFrame/Vector3/Number into a string Value then put it on the print line!
Like...
value = Instance.new("StringValue") value.Value = derp.CFRame print("Derp's CFrame = "..value.Value) value:Remove() |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 10:33 AM |
Fffffooooooo, I have to do it the hard way... XD
CFrame won't be easy, I'll try Vector3..... |
|
|
| Report Abuse |
|
|
Dr01d3k4
|
  |
| Joined: 11 Oct 2007 |
| Total Posts: 17916 |
|
|
| 30 Jul 2012 10:37 AM |
| @Original question: couldn't you also use print(tostring(PART.Archivable));? |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 10:42 AM |
I have never used that before, can you show me how it may be used?
|
|
|
| Report Abuse |
|
|
|
| 30 Jul 2012 10:44 AM |
print("Test: " ..tostring( game.Workspace.Model.Archivable ))
† KMXD † - Evil Duck Overlord, bent on world domination. |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 10:45 AM |
:O SHE LIVES!
*Parties on a whale* |
|
|
| Report Abuse |
|
|
|
| 30 Jul 2012 10:55 AM |
orr
print(Workspace.Model.Archivable and "Test: true" or "Test: false")
† KMXD † - Evil Duck Overlord, bent on world domination. |
|
|
| Report Abuse |
|
|
kdawg833
|
  |
| Joined: 22 Feb 2010 |
| Total Posts: 950 |
|
|
| 30 Jul 2012 10:57 AM |
No, all i was doing was getting the output to look like this:
Part1 = Instance.new('Part') Part1.Parent = model Part1.CFrame = CFrame.new(-3, 0.599999666, 4, 1, 0, 0, 0, 1, 0, 0, 0, 1) Part1.Size = Vector3.new(10, 1.20000005, 10) Part1.BrickColor = BrickColor.new('Medium stone grey') Part1.CanCollide = true Part1.Anchored = true Part1.FormFactor = Enum.FormFactor.Brick)
I'm trying to save the exact parameters of a model. I have succeeded. |
|
|
| Report Abuse |
|
|