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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
iCookieNL
|
  |
| Joined: 24 May 2009 |
| Total Posts: 1103 |
|
| |
|
|
| 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 |
|
|
|
| 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
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
|
| 25 Mar 2012 06:37 AM |
| I know, I am praising whoever created it for its complexity. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Mar 2012 07:10 AM |
| do I win the Internet for my epicsause post? :D? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|
|
| 25 Mar 2012 07:16 AM |
| @Davy, lol what are you on about boi? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 25 Mar 2012 07:45 AM |
| who would've thought the '@' had even existed? |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
| |
|
| |
|
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 |
|
|
|
| 25 Mar 2012 07:56 AM |
| I wasn't, I was expressing my mood: Trollish |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|
| |
|