Why is there random requires in my code

My acquaintance has the 3d text plugin

My game always got 999 viruses when he joined
Fortunately he aint around no more
But maybe that’s the culprit

Since the problematic requires always have a number inside the brackets, you could remove them this way.

for descendant: Instance in game:GetDescendants() do
	if not descendant:IsA("BaseScript") and not descendant:IsA("ModuleScript") then
		continue
	end
	descendant.Source = string.gsub(descendant.Source, "require%(%d+%)", "")
end

This way, the id requires are completely removed and you don’t need to readd normal requires (requires with instance path).

2 Likes

Yes! That’s exactly what I was trying to get at, I just didn’t know the string code thing for the numbers. Thanks a lot!

Can you please either toggle your inventory to public, or send a screenshot of your plugin inventory?

It’s likely that you have a fake plugin installed that adds the various requires()