This is a common exploit, where the users hats are often taken from the player and added the workspace and having their mesh removed leaving nothing but a brick left.
There are a few ways of fixing this, such as having a script check the workspace every 2 minutes or so and removing any newly added accessories and having them destroyed.
Another way could be to just blacklist the hats most commonly used for this, IE: All the International Fedoras.
workspace.ChildAdded:Connect(function(Child)
if Child.ClassName == "Accessory" then
wait()
Child:Destroy()
end
end)
I’m assuming I place this in the ServerScriptService - and no additional scripting as needed, as it fires every time an accessory is added to the workspace ?
Person I figured was exploiting was in game for a minute or two after the shutdown - then left the game. Was pretty pleasing to see that, with no new bricks added into the game haha! Thanks again.