Hello, this is my code here. It removes all player packages and deletes them in a whole. This script also breaks my tools and locks the player when holding the tools.

while true do
wait()
c=game.Workspace:getChildren()
for i = 1, #c do
cc=c[i]:getChildren()
for ii=1, #cc do
if cc[ii].className=="CharacterMesh" then
cc[ii]:Remove()
end
end
end
end

Can someone help me? I would appreciate it greatly.

4 comments

0

:c

0

You're looping through everything in workspace.. that'll lag like hell

1

This is a free model. I do not appreciate this.