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

Character removing help?

Asked by
FiredDusk 1466 Moderation Voter
8 years ago

Player = game.Players.PlayerAdded Player.Character.Head.Transparency = 1 Player.Character["Left Arm"]:remove() Player.Character["Right Arm"]:remove() Player.Character["Left Leg"]:remove() Player.Character["Right Leg"]:remove()
0
Does not work FiredDusk 1466 — 8y

1 answer

Log in to vote
3
Answered by 8 years ago

Since you told me you wanted to Change the Transparency of the Player's Character Ligaments instead of removing it, so I made some adjustment to the script!

game.Players.PlayerAdded:connect(function(Player)--The Function listen for the PlayerAdded event.
    local Character = game.Workspace:WaitForChild(Player.Name)
     for _,v in pairs (Character:GetChildren()) do--Loops through the Player's Character
    if v:IsA("Part") then--Check if any Object inside the Character is ClassNamed "Part"
    v.Transparency = 1--If its ClassName is "Part" then.    
        end
    end 
wait(1)
    for _,v in pairs (Character:GetChildren()) do--Loops through the Players Character
    if v:IsA("Hat") then--Check if any Object inside the Character is ClassNamed "Hat"
    v:Destroy()--If It is then DESTROY IT MUHAHAH
        end
    end 
    local Decal = Character.Head:WaitForChild("face")--Wait til there's a Face inside of the Character's Head
    Decal:Destroy()--Destroys the face MUAHAH.
end)


0
Did you miss another "end"? FiredDusk 1466 — 8y
Ad

Answer this question