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: Any other way:

Previous Thread :: Next Thread 
kdawg833 is not online. 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 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
30 Jul 2012 03:12 AM
Hmm? Use an if statement.
Report Abuse
kdawg833 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
30 Jul 2012 03:17 AM
Yes it would, depends what you are trying to do.
Report Abuse
kdawg833 is not online. kdawg833
Joined: 22 Feb 2010
Total Posts: 950
30 Jul 2012 03:18 AM
Example of this?
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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 is not online. 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
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
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 is not online. kdawg833
Joined: 22 Feb 2010
Total Posts: 950
30 Jul 2012 03:41 AM
Close.... I'm american XDXD
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
30 Jul 2012 03:43 AM
Wow....... No American says brilliant besides you, XD!
Report Abuse
kdawg833 is not online. 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 is not online. 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 is not online. 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 is not online. 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
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
30 Jul 2012 10:44 AM
print("Test: " ..tostring( game.Workspace.Model.Archivable ))

† KMXD † - Evil Duck Overlord, bent on world domination.
Report Abuse
kdawg833 is not online. kdawg833
Joined: 22 Feb 2010
Total Posts: 950
30 Jul 2012 10:45 AM
:O SHE LIVES!

*Parties on a whale*
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
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 is not online. 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
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