Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

There is some kind of hack in my ReplicatedStorage, how do i get it out???

There is a hack in my ReplicatedStorage that makes the ambient in my game bright with black lines on the parts it will not let me delete it, what should i do? The hack is called >ð%kͰލ&ì

Here is a link to the place, it only does this when you click play or play it in studio.

http://www.roblox.com/games/255503413/In-Development I've been trying to fix this for two days and i'm getting VERY annoyed. If you know how to fix this please leave an answer. Thanks!

2 answers

✓ Accepted answer

well if you got the name and the path to the name, just use :Destroy()

3 comments

0

Or it could have been an Virus Plugin.

0

Yeah, then just use the anti virus plugin to clean it.

0

Thanks, the virus is removed, but the ambient is still set to 25500, 25500, 25500. In studio, it looks fine, but when you play the game, it looks too bright. Even when i change the ambient it goes back to 25500, 25500, 25500. Thanks for the help anyways.

Your best bet would be to use a **recursive **function to scan through services in search for your "infection".

Why? because they are more than likely in numerous other services or instances, and removing just the one would most-likely not stop the spread.

To avoid these infections in the future, do not use models of unknown origins. If you choose to do otherwise, at least check through it to ensure that there are no malicious scripts inside.

local malware = {'>ð%kͰލ&ì', 'virus'}

-- The above is a "list" of all possible viruses you've encountered, fill it up
-- as you encounter more.

-- The following function just iterates through the list above,
-- and returns true if the argument passed for parameter "infection"
-- matches anything is the list. If no match, returns nil.

matched = function(infection)
	for index = 1, #malware do 
		if malware[index]:lower() == infection:lower() then
			return true
		end
	end
end

-- Finally, using recursion, iterate through the argument passed
-- looking for possible matches. For every child found, check if
-- match by calling function `matched`

-- If no matches found, call function "scan" on child,
-- therefore repeating the process.

scan = function (repository)
	local repo = repository:GetChildren()
	
	for serial, value in pairs(repo) do
		if matched(value.Name) then
			warn(value:GetFullName())
			value:Destroy()

		else
			scan(value)
			
		end
	end
	wait(.5)
end

scan(game) 
-- scan through DataModel, might take some time, or cause a little bit
-- of latency, depending on the size of your game.

EDIT

Answering your second question, the default Ambient property's value is Color3.new(0,0,0). To fix the brightness, set it back to its original value.

game.Lighting.Ambient = Color3.new() -- no need to add in any arguments, defaults to 0,0,0

2 comments

0

Thanks, the virus is removed, but the ambient is still set to 25500, 25500, 25500. In studio, it looks fine, but when you play the game, it looks too bright. Even when i change the ambient it goes back to 25500, 25500, 25500. Thanks for the help anyways.

0

read the section after the "EDIT" for information on how to reset your Ambient

This discussion is preserved as it was. New answers, comments, and votes are closed.