What does this script do?

Hey there, i found a script in a model and it haves a a script, is this a dangerous script? or this causes lag? or causes less lag? What this does?

Debris = game.Debris
MaxDebris = game.Debris.MaxItems

if (Debris.MaxItems > 9999999999)then
    Debris.MaxItems = MaxDebris*9999999999
end

PLEASE TELL ME IF THIS IS WRONG CATEGORY AND WHERE I SHOULD MOVE IT!

Not very dangerous but the number set to MaxItems is very abused. Be aware that this property is deprecated and currently restricted and will result in an error if set.

I still recommend you to just delete this of your whole code because it is completely useless.

You can read the documentation page of the service Debris to better understand what is it.

1 Like

depricated + max is hardcoded to 1000

1 Like

This script doesn’t do anything, the max items is deprecated and does not function.

This is unusual code, and I recommend erasing it from your game, it’s probably filler for a larger virus.