Im trying to create a test tool that destroys another players body part when touched yet its not working and not giving me any errors, Any ideas?
local p = game.Players.LocalPlayer
local c = p.Character
local x = {"Right Arm", "Right Leg", "Torso", "Left Arm", "Left Leg", "Head"}
script.Parent.Touched:connect(function(hit)
if hit.Parent ~= c then return end
if hit.Parent == x then
x:Destroy()
end
end)

2 comments
Is FilteringEnabled active?
Yes