repeat wait()
until game.Workspace:FindFirstChild("WinerMessage")~= nil
player = game.Players:GetChildren()
for i,v in pairs(player) do
local playercharacter = v.Character
if game.Workspace:FindFirstChild("WinerMessage")~= nil then
playercharacter.Humanoid.LocalBin:Destroy()
end
end
my code ^ -- it wont delete the local parts. i made a script that gives local parts to all the players. i want the local parts to be destroyed if something called 'WinerMessage' pops up in workspace. so basically if a message pops up in workspace names WinerMessage all the local parts should get destroyed all the local parts from each player. i place my local parts in players humanoid. is there a way to delete them?

3 comments
Why not use the same local script that creates them? Have somehing within it that constantly checks for "WinerMessage" and deletes the parts if it exists.
umm let me try that
For future reference, it's generally better to put the parts in game.Workspace.CurrentCamera.