Why is there random requires in my code

I dont know if this is right category to put in. But my code has random requires() at the end

image

how can I know what is causing this and a way to remove all fast?

2 Likes

Your hacked :innocent:(this is a joke.), can u atleast give me a bit more details of ur scrpt/script editor? (it might be smth stupid)

its in many scripts. it just has many requires at the last line of my scripts. i removed them all once but it came back…

1 Like

Check your plugins installed. there could be virus plugin lurking.

1 Like

i only have these plugins TOGGLED on (could it still mess with my code even if the other plugins are off?)

i also have always used these plugins with no issues

1 Like

oh but i think thats not the case-
about the plugin thing its maybe for these reasons (as @Sorbious said)
1 - u have a copied plugin (unorginial)
2 - u have a plugin that is a virus
3 - u have a plugin thats freaking out

hmm, is there also a way I can delete all of them faster? instead of just going in each script 1 by 1

1 Like

i dont think u can delete them u can remove them from ur inventory but instead. you can just enable the plugins u need currently like easy weld or whatever and when u need another plugin for some reason, u can just add it and see if it changes the script’s text

oh so there is no way I can remove them faster in each script??

i dont think so- you can just suffer in pain and remove each one DO IT. I TELL U TO DO IT. and espiesscally that ur looking for a virus plugin JUST DO IT!!!

1 Like

can you give the id the module please?

7081660870
this is ID

(CHRAIJHDIAJFOA)

Can’t access it. Do you have access to it? If not, then it can’t be really used on your game.


also if u mean the id from the photo its this “7082754029”
(just helping)

i dont have access either. it just has many errors in the output

image

on server scripts:

image

you can go into a script, press the arrow under “find” in the top left corner then press find all then a gui will pop up at the bottom then press the two arrows then input “require( – whatever it was” then repalce it with an empty space

Btw i just noticed that all requires have a differnet asset id

this did work, but all of them have different asset id’s

Then it can’t really do much, you can’t require private modules, you need permission or own them. But you should still remove them since they error the whole stack.

Ctrl+Shift+F then search for require
Control(⌃)+Shift+F on mac.

1 Like

A quick way to remove them after the plugin thing is fixed is with the Studio command bar.

for _, script in next, game:GetDescendants(), nil do
    if not script:IsA("Script") and not script:IsA("LocalScript") and not script:IsA("ModuleScript") then continue end
    script.Source = string.gsub(script.Source, "require(", "")
    --brackets will be there. Make sure to remove them.
end

Just remember to re-require all the modules that are yours.

1 Like