Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Trying to remove players arm when they join?

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

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)

2 comments

0

In the output it displays: player is not a valid member of DataModel. I appreciate you're reply though.

0

sorry for the REEEEEEEEEEEEALLY late reply, i updated the script.

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! :)

This discussion is preserved as it was. New answers, comments, and votes are closed.