Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Need to remove decal on the player's torso on entry?

Asked by 9 years ago

I made the script to remove everything on the player except the arms,legs,torso,and head. I just want the player to be a blank player on entry but I cannot figure out how to remove the decal from the torso, as you can see I have attempted it and it isn't working correctly.

local hat = game.ServerStorage.Hat
local debris = game:GetService("Debris")

game.Players.PlayerAdded:connect(function(plr)
plr.CharacterAdded:connect(function(char)

        if char then
                char.DescendantAdded:connect(function(part)
                        if part:IsA("Part") or part:IsA("Script") or part:IsA("LocalScript") or part:IsA("Humanoid")then
                                if part.Name == "Torso" then
                                        local decal = part:WaitForChild("roblox")
                                                debris:AddItem(decal,0)
                                end
                        else
                                debris:AddItem(part,0)
                        end
                end)
        end
end)
end)

Answer this question