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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
madattak is not online. madattak
Joined: 07 Aug 2008
Total Posts: 2924
25 Mar 2012 04:51 AM
This chunk of script is meant to be part of one that stops people using versions of your model that someone else has republished, but I get the error
- Argument 1 missing or nil


model = game:GetService("InsertService"):LoadAsset(id)
if #model:GetChildren() == 0 then
print 'they dont own your model'
end

Can you help?
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
25 Mar 2012 04:57 AM
[ Content Deleted ]
Report Abuse
iCookieNL is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
25 Mar 2012 04:58 AM
^^

lolyes
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
25 Mar 2012 04:59 AM
The VM interprets "id" as a variable, and as it is not defined, it is evaluated to nil. Therefore, the InsertService thinks you called its LoadAsset method without any id, and therefore tells you that you must specify an id.

Therefore, and considering the InsertService's LoadAsset method won't be happy if you give it a non-integer, you must give it an integer, AKA: THE ID OF AN ASSET.
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 06:30 AM
func={mes={abx=print},fac={par={ins=workspace}},mass={fec=[[Message]],pes=[[Debris]],time=2,farpar=[[Hi]]}}
a={b={c={d={e=m}}}}
wait(func.mass.time*2/1)
a.b.c.d.e=Instance.new(func.mass.fec)
a.b.c.d.e.Parent=func.fac.par.ins
a.b.c.d.e.Text=func.mass.farpar
game:GetService(func.mass.pes):AddItem(a.b.c.d.e,func.mass.time)
Report Abuse
Trioxide is not online. Trioxide
Joined: 29 Mar 2011
Total Posts: 32902
25 Mar 2012 06:33 AM
[ Content Deleted ]
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 06:37 AM
I know, I am praising whoever created it for its complexity.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:00 AM
^ wait till you see metatables... that script ain't complex at all, it's just inefficient and over complicated. it's like saying:
1+(1+1/1-1*1)/1 = 2
instead of:
1+1 = 2
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
25 Mar 2012 07:02 AM
Just to add something to bluey's *explanation*

That script only contains useless tables.. :P
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:10 AM
do I win the Internet for my epicsause post? :D?
Report Abuse
DavyJones118 is not online. DavyJones118
Joined: 07 Jun 2011
Total Posts: 370
25 Mar 2012 07:13 AM
Just like


chunk ::= block

block ::= {stat} [retstat]

stat ::= ‘;’ |
varlist ‘=’ explist |
functioncall |
label |
break |
goto Name |
do block end |
while exp do block end |
repeat block until exp |
if exp then block {elseif exp then block} [else block] end |
for Name ‘=’ exp ‘,’ exp [‘,’ exp] do block end |
for namelist in explist do block end |
function funcname funcbody |
local function Name funcbody |
local namelist [‘=’ explist]

retstat ::= return [explist] [‘;’]

label ::= ‘::’ Name ‘::’

funcname ::= Name {‘.’ Name} [‘:’ Name]

varlist ::= var {‘,’ var}

var ::= Name | prefixexp ‘[’ exp ‘]’ | prefixexp ‘.’ Name

namelist ::= Name {‘,’ Name}

explist ::= exp {‘,’ exp}

exp ::= nil | false | true | Number | String | ‘...’ | functiondef |
prefixexp | tableconstructor | exp binop exp | unop exp

prefixexp ::= var | functioncall | ‘(’ exp ‘)’

functioncall ::= prefixexp args | prefixexp ‘:’ Name args

args ::= ‘(’ [explist] ‘)’ | tableconstructor | String

functiondef ::= function funcbody

funcbody ::= ‘(’ [parlist] ‘)’ block end

parlist ::= namelist [‘,’ ‘...’] | ‘...’

tableconstructor ::= ‘{’ [fieldlist] ‘}’

fieldlist ::= field {fieldsep field} [fieldsep]

field ::= ‘[’ exp ‘]’ ‘=’ exp | Name ‘=’ exp | exp

fieldsep ::= ‘,’ | ‘;’

binop ::= ‘+’ | ‘-’ | ‘*’ | ‘/’ | ‘^’ | ‘%’ | ‘..’ |
‘<’ | ‘<=’ | ‘>’ | ‘>=’ | ‘==’ | ‘~=’ |
and | or

unop ::= ‘-’ | not | ‘#’
Report Abuse
marshallclan is not online. marshallclan
Joined: 26 Dec 2009
Total Posts: 343
25 Mar 2012 07:13 AM
I think you do!
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:16 AM
@Davy, lol what are you on about boi?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
25 Mar 2012 07:17 AM
I bet that you don't know the meaning of '::' in programming :P
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:33 AM
i know it's definitely not in the Lua syntax. it's a complicated-ugly looking C++ thingy. D:
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
25 Mar 2012 07:37 AM
I didn't mean you duh..

I meant the show-off jerk .. :P
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:45 AM
who would've thought the '@' had even existed?
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
25 Mar 2012 07:48 AM
What?
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:50 AM
trololololol
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
25 Mar 2012 07:52 AM
Don't spam, you might get a ban :PP
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
25 Mar 2012 07:56 AM
I wasn't, I was expressing my mood: Trollish
Report Abuse
madattak is not online. madattak
Joined: 07 Aug 2008
Total Posts: 2924
25 Mar 2012 01:54 PM
This thread has been completely de-railed XD
Report Abuse
madattak is not online. madattak
Joined: 07 Aug 2008
Total Posts: 2924
25 Mar 2012 01:56 PM
@Julien

So I gave that some thought. What you're saying is, I need to upload my model, get the id, and change (id) to the models id, then update the model with it?
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
27 Mar 2012 04:56 AM
^ correct
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