Make player body parts appear onTouch brick

He has a startercharacter which contains a left arm2. (It’s probably not welded properly or something)

1 Like

okay I don’t know what StarterCharacter is, does Roblox make that the character of every player?

It’s a custom character he made.

(It’s probably not welded properly or something)

Oh god. In the youtube link I resized the arm. That’s why the weld broke

Lol. Try welding it again so it doesn’t fall and break due to Workspace.FallenPartsDestroyHeight

Yup. It worked. When I rescaled it it broke the weld.

It does that. That’s why you should use WeldConstraints.

1 Like

Oh. I use the Weld Plugin. I find it easier to use.

The script has a print function on it can you remove it without breaking the script?

local Part = script.Parent
Part.Touched:Connect(function(Hit)
	print("Part touched")
	local Player = game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent)
	if Player then
		local Arm = Player.Character:FindFirstChild("Left Arm2")
		if Arm then
			Arm.Transparency = 0 
		else 
			print("No arm found")
		end
	else
		print("A PLAYER DIDN'T TOUCH THE PART? WHAT THE HECK?")
	end
end)
local Part = script.Parent
Part.Touched:Connect(function(Hit)

	local Player = game:GetService("Players"):GetPlayerFromCharacter(Hit.Parent)
	if Player then
		local Arm = Player.Character:FindFirstChild("Left Arm2")
		if Arm then
			Arm.Transparency = 0 
		else 
                       return
		end
	else
              return
	end
end)

Just double click on the prints and press backspace

1 Like