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: Why does this keep saying 'attempt to call a nil value'

Previous Thread :: Next Thread 
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:06 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:07 AM
Did you activated the function before you defined it?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:08 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:08 AM
[ Content Deleted ]
Report Abuse
MrChubbs is not online. MrChubbs
Joined: 14 Oct 2010
Total Posts: 4969
17 Oct 2011 11:08 AM
workspace is a nil value, game.Workspace is how you access Workspace.
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:09 AM
workspace is linked to game.Workspace

1WOOF1, Could you post the full script here.. or if you dont want, maybe PM?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:10 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:11 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:14 AM
I just used InsertService, and i just needed the link but... is that your edited version of it or the basic version?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:15 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:19 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:21 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:24 AM
Are you using some "script.Parent" thing? because, when you use InsertService it creates a model and inserts the object to it?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:25 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:31 AM
Yes i checked that script but i did not saw any TelamonsSfothOriginal function..

And you said that it breaks in InsertService (Like you insert it)
Because.. this script shows you what i mean (If you understand)
(This should be in workspace)


print("Script loaded")
if script.Parent == game.Workspace then
print("This isn't inserted with insert service")
elseif script.Parent:IsA("Model")
error("This is inserted with insert service",0)
end

Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:33 AM
[ Content Deleted ]
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:36 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:38 AM
Ill try to explain it...
this is a sample script(what should be in workspace);
[[
wk = script.Parent
character = wk.Bob
character:BreakJoints()
]]
That would work if the script would be already in workspace, but if you create a model of it id would be 123123 (Just sample)

then lets insert it
m = game:GetService("InsertService"):LoadAsset(123123)
m.Parent = workspace
..Yes i set it to workspace, but insert service creates first a model so the scripts parent is a MODEL, what is in the workspace
and output should show something about this


>Bob isn't a valid member of a model
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:40 AM
Btw your output didn't show the line?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:43 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:47 AM
That IS weird...But that script errored 2 times and stack ended?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:48 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:49 AM
Does this-

httpGet failed. Trying again. Error: empty url. Elapsed time: 0
Loading
HAC ERROR: attempt to yield across metamethod/C-call boundary

Belong to your script error?
Report Abuse
1WOOF1 is not online. 1WOOF1
Joined: 03 May 2009
Total Posts: 20682
17 Oct 2011 11:51 AM
[ Content Deleted ]
Report Abuse
su8 is not online. su8
Joined: 06 Mar 2009
Total Posts: 6334
17 Oct 2011 11:53 AM
So those all might be fake errors except that nil thing?
If they are not.. RBX.lua isn't my best language...
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