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

Trying to remove players arm when they join?

Asked by 6 years ago
game.Players.PlayerAdded:connect(function(player)
    game.Players.Character.Arm:Remove()
end)

Attempting to make this code remove the players arms when they join, not quite sure if I've done it right though as it's not working.

Any replies are appreciated.

2 answers

Log in to vote
0
Answered by
Astralyst 389 Moderation Voter
6 years ago
Edited 6 years ago

Player's Arm is not named "Arm".

It's both "Left Arm" and "Right Arm". The same goes for player's leg, it's not "Leg". It's both "Left Leg" and "Right Leg".

game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(character)
character:WaitForChild'Left Arm':Destroy()
character:WaitForChild'Right Arm':Destroy()
end)
0
In the output it displays: player is not a valid member of DataModel. I appreciate you're reply though. EasilyTech 25 — 6y
0
sorry for the REEEEEEEEEEEEALLY late reply, i updated the script. Astralyst 389 — 6y
Ad
Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Here, when a player is added, it fires another function that when the new player's character is loaded, it removes its arms. Note that this is with R6, not R15 with the nice flexible arms. Otherwise if you're using R15 then you get all the parts of the arms and destroy them too by putting the name of the part into the quotes.

game.Players.PlayerAdded:connect(function(plr)
    plr.CharacterAdded:connect(function(char)
        char["Left Arm"]:Destroy()
        char["Right Arm"]:Destroy()
    end)
end)

Hope this helps you! :)

Answer this question