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: What's a way to fix this Error?

Previous Thread :: Next Thread 
jacob2233 is not online. 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
ponageman2086 is not online. ponageman2086
Joined: 18 Apr 2009
Total Posts: 219
18 Aug 2011 07:27 PM
Where do you define size?

~~ In Soviet Russia, scripts write you. ~~
Report Abuse
jacob2233 is not online. 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 is not online. jacob2233
Joined: 23 Aug 2007
Total Posts: 723
18 Aug 2011 07:43 PM
Can anyone help?
Report Abuse
jacob2233 is not online. jacob2233
Joined: 23 Aug 2007
Total Posts: 723
20 Aug 2011 06:36 AM
help?
Report Abuse
Apocalyps is not online. 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 is not online. 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 is not online. 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
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