Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

Very weird outputs- Help?

Asked by 10 years ago

I am getting the weirdest ouputs in ROBLOX Studio. These are 100% real. attempt to index global 'we' (a nil value)... attempt to index global 'script' (a nil value)... um script is like what everybody uses and I don't even use 'we' in any of my scripts. Is it a ROBLOX Bug, maybe a glitched plugin, maybe my computer?, maybe I need to reinstall ROBLOX Studio? Are any of these a possibility. If you know how to fix this can you please tell me?

0
Either you have a script that has 'we' or you put in a model of some sort that has one that does, at least most likely VariadicFunction 335 — 10y

1 answer

Log in to vote
0
Answered by
Perci1 4988 Trusted Moderation Voter Community Moderator
10 years ago

If you're getting these errors as soon as you start up, then they are from a plugin you installed.

If you're getting them when you run the game, however, then they are most likely your scripts. But the error is not the only thing that the output tells you; it also tells you both the script and the line number the error was made on. For example, you would have got something like this;

Workspace.Script:1: attempt to index global 'we' (a nil value)
Stack Begin
Script 'Workspace.Script', Line 1
Stack End

Now you know where the error is, so you can easily fix it.


As for script, there are two possible problems. First is that you simply spelled 'script' wrong somewhere in the script and therefore it errored.

The second possible problem is that the built-in global script, normally equal to whatever Script object it is used in, was overridden by a variable;

script = "hi"
print(script)

And now you have a problem.


Just remember, Roblox tells you everything in the output; the error, the script, and the line number. You can use this to find where the problem is and fix it.

0
They are a plugin. That is causing the errors. I will get rid of them. raystriker6707 30 — 10y
0
OMG I AM SO SORRY! I have no idea why i originally typed 'stupid' in there! I do not mean it nor did I ever mean that! I am so sorry! Perci1 4988 — 10y
Ad

Answer this question