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

Require(assetId) cannot be called from a client?

Asked by 5 years ago

I've been having this error all day today and I'm not sure what it is. The output says "require(assetId) cannot be called from a client" I have no idea what this means! I tried working around it because it doesn't seem to be causing any problems, but I don't understand how to remove it.

I do not know what script this is coming from.

When I click on it, it doesn't direct me anywhere.

Has anybody else received this problem lately? Or knows how to solve it?

0
It means you cannot call "require(assetId)" from the client, and must be called by the server. ee0w 458 — 5y
0
@Color3fromRGB *slow clap* EzraNehemiah_TF2 3552 — 5y

3 answers

Log in to vote
0
Answered by
Cyrakohl 108
5 years ago

You cannot require an assst through the clisnt as it does not have access to the server api services

Ad
Log in to vote
0
Answered by 5 years ago

Studio Shortcuts

You can see a list of hotkeys here and here.


Find in All Scripts

To find a specific string of text in all of your scripts in the place you are in, press Ctrl+Shift+F. Type what you want to find in the textbox (it is not case sensitive).


General Debugging Method 1

Press Ctrl+Shift+F, type require( and you want to find a LocalScript with require(NUMBERS). If the script is a script you coded, you should fix it asap. If the script is a script from a free model or just not your script and your game is working perfectly fine with the error, ignore it.


General Debugging Method 2

You want to make sure output is visible. Click on the error in the output next time it comes up to view the source of the error. It will take you to the exact line of code where the error occurs. Again, if the script is a script you need, fix it. If it is someone else's code or it's something you don't need then ignore it.



Hope it helps!

Log in to vote
0
Answered by 5 years ago

It's a plugin error, isn't it? Look something like this?

15:24:52.944 - require(assetId) cannot be called from a client

15:24:52.945 - Stack Begin

15:24:52.945 - Script 'Plugin_439617715.Load Character.Script', Line 1

15:24:52.946 - Stack End

Answer this question