-
Notifications
You must be signed in to change notification settings - Fork 24
ROBLOX's scripts output "attempt to call a nil value" #212
Comments
ScriptContext.Error suggests the CoreScript at fault is CoreScripts/BackpackScripts/LoadoutScript. > game:GetService("ScriptContext").Error:connect(print)
> game.Players.Player1:LoadCharacter()
23:14:57.575 - attempt to call a nil value
attempt to call a nil value CoreScripts/BackpackScripts/LoadoutScript |
Yeah, I got that when I started printing out the script name instead of calling :GetFullName() which just broke everything. |
However I can't find anything that I would expect to cause a stacktrace-less "attempt to call a nil value" errors (event connections/Spawn/delay with a value that is nil). |
The Intellisense documentation for
|
I think you've misunderstood my code snippet, which isn't part of the Script that's erroring, but entered into the command bar to make the code at fault run, by creating a character, with a connection to ScriptContext.Error already in place. The error can be reproduced by following the original reproduction steps, without anything entered into the command bar. That code snippet is unrelated to the bug and was just using ScriptContext.Error to determine what script was throwing that error. |
No, I am saying that Solo Mode is NOT considered a game server, and so if you don't want this error, you should use Start Server -> StartPlayer. |
Your original comment suggests you think the issue is something to do with using Player:LoadCharacter wrong, but I don't understand why you think that.. |
I incorrectly assumed that Quenty had tested this on the server. Disregard my previous comment. Do we have any ways of determining the exact cause of this bug? |
I believe it's the backpack "Loadout" script. Line 927 seems like it could be the cause (Because it's not a generic function being connected), but I have no idea. To be honest, if anything should be rewritten, that backpack one should be, not that this is justification for thus. In any event, it can be reproed, so... we'll see what happens. |
Issue submitted to ROBLOX/Core-Scripts |
One of ROBLOX's core scripts will output "attempt to call a nil value" in solo test mode If certain conditions are met.
It appears when you load a character, and you have set the Players.ChracterAutoloads to false, then you will break some unknown script.
Repro
Tadah. Error.
The text was updated successfully, but these errors were encountered: