Invisible part of the code in the script

ok so someone asked me to remove bugs and viruses from his game and i found a very strange thing. I see this script:


this script is apparently 21 lines of code, and the script slider is only here (both ways). this is actually what we can see in the script.
but I had the source code printed in the output, and I saw this there.


I have never encountered it. Another strange thing about this script is that it has this instead of a name
image
I wonder what it is and how rare this is, because I’ve never seen it before, even though I’ve been programming on roblox for about 3 years.

2 Likes

It’s not rare in viruses at all, it’s called obfuscation.

3 Likes

I know that, but I was used to seeing the slider to the side somewhere awfully far away, and it was always there, but here I don’t even see it in the script editor

2 Likes

Maybe they used a new way to obfuscate.
Did you check if there were special characters in the script?

2 Likes

(post deleted by author)

3 Likes

oh, and what I can’t see, so it won’t start? because even when I export the script as .lua, it’s not visible either.
yes, I’ll replace the script with my own, which is clean, but I’m interested.

3 Likes

Could they be null characters?

2 Likes

Can you send the .rbxm file?

2 Likes

of course, in this file there is a part with a script.
Badge award intended for inspection.rbxm (4.7 KB)
this command displays the entire script. type it in the command line in studio.

local code = workspace.BadgeAwarder.Platform.BadgeAwarderScript.Source print(code)

it’s obvious that something is wrong with this script, so don’t use it in any game, and don’t distribute it

2 Likes

I do not know. I put it in notepad++, but I only saw this. I displayed the special characters such as spaces and so on

2 Likes

CRLF oof, yeah do not use/distribute this.

2 Likes

Export it as rbxmx and inspect the source.

Linked source is now <Content name="LinkedSource"><url>http://www.roblox.com/asset/?id=13326026</url></Content> instead of usual <Content name="LinkedSource"><null></null></Content> and the code is now fully visible, you can inspect unicode characters used now.

3 Likes