How to put particles on humanoid's arms and Head?

–//Services
local ServerStorage = game:GetService(“ServerStorage”)

	--//Variables
	local Particle115 = ServerStorage.kills115
	local Character = script.Parent

	--//Tables
	local ValidParts = {
		"Right Arm"
	}

	--//Functions
	for i, child in pairs(Character:GetChildren()) do
		print(child)
		if ValidParts[child.Name] then
			print("found in table")
			local Particle = Particle115:Clone()
			Particle.Parent = child
		end
	end



	
	
	end
	
	
	
end

instance.Touched:Connect(kills100)

Where is kills100 defined? Are you sure this is the whole script?

but its a script with 100+ lines of code, this is only the part that doesnt work

Please send the whole script, as I stated.

im pretty sure this is to do with the fact that you’re setting character to the script’s parent, not the player’s character

Here:

–cooldown = false
local instance = script.Parent

local function kills100(part)
if cooldown == false then
cooldown = true
end
local Humanoid = part.Parent:FindFirstChild(“Humanoid”)
if Humanoid then
wait(2)
Humanoid.WalkSpeed = 52
local sound = Instance.new(“Sound”,Humanoid.Torso)
sound.SoundId = “rbxassetid://9849884556”
sound.Looped = true
sound.Volume = 2.5
sound:Play()
local serverstorage = game:GetService(“ServerStorage”)
local particle = serverstorage:WaitForChild(“kills100”)
local particle100 = particle:Clone()
particle100.Parent = Humanoid.Torso

	local serverstorage = game:GetService("ServerStorage")
	local particle1 = serverstorage:WaitForChild("kills101")
	local particle101 = particle1:Clone()
	particle101.Parent = Humanoid.Torso
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle2 = serverstorage:WaitForChild("kills102")
	local particle102 = particle2:Clone()
	particle102.Parent = Humanoid.Torso
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle3 = serverstorage:WaitForChild("kills103")
	local particle103 = particle3:Clone()
	particle103.Parent = Humanoid.Torso
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle4 = serverstorage:WaitForChild("kills104")
	local particle104 = particle4:Clone()
	particle104.Parent = Humanoid.Torso
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle5 = serverstorage:WaitForChild("kills105")
	local particle105 = particle5:Clone()
	particle105.Parent = Humanoid.LeftLeg

	local serverstorage = game:GetService("ServerStorage")
	local particle141 = serverstorage:WaitForChild("kills1041")
	local particle1141 = particle141:Clone()
	particle1141.Parent = Humanoid.LeftLeg

	
	
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle6 = serverstorage:WaitForChild("kills106")
	local particle106 = particle6:Clone()
	particle106.Parent = Humanoid.LeftLeg


	local serverstorage = game:GetService("ServerStorage")
	local particle7 = serverstorage:WaitForChild("kills107")
	local particle107 = particle7:Clone()
	particle107.Parent = Humanoid.LeftLeg

	
	local serverstorage = game:GetService("ServerStorage")
	local particle8 = serverstorage:WaitForChild("kills108")
	local particle108 = particle8:Clone()
	particle108.Parent = Humanoid.LeftLeg
	
	
	


	
	local serverstorage = game:GetService("ServerStorage")
	local particle9 = serverstorage:WaitForChild("kills109")
	local particle109 = particle9:Clone()
	particle109.Parent = Humanoid.RightLeg

	
	local serverstorage = game:GetService("ServerStorage")
	local particle10 = serverstorage:WaitForChild("kills110")
	local particle110 = particle10:Clone()
	particle110.Parent = Humanoid.RightLeg
	

	
	local serverstorage = game:GetService("ServerStorage")
	local particle11 = serverstorage:WaitForChild("kills111")
	local particle111 = particle11:Clone()
	particle111.Parent = Humanoid.RightLeg
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle12 = serverstorage:WaitForChild("kills112")
	local particle112 = particle12:Clone()
	particle112.Parent = Humanoid.RightLeg
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle13 = serverstorage:WaitForChild("kills113")
	local particle113 = particle13:Clone()
	particle113.Parent = Humanoid.RightLeg
	
	
	local serverstorage = game:GetService("ServerStorage")
	local particle14 = serverstorage:WaitForChild("kills114")
	local particle114 = particle14:Clone()
	particle114.Parent = Humanoid.RightLeg



	--//Services
local ServerStorage = game:GetService("ServerStorage")

	--//Variables
	local Particle115 = ServerStorage.kills115
	local Character = script.Parent

	--//Tables
	local ValidParts = {
		"Right Arm"
	}

	--//Functions
	for i, child in pairs(Character:GetChildren()) do
		print(child)
		if ValidParts[child.Name] then
			print("found in table")
			local Particle = Particle115:Clone()
			Particle.Parent = child
		end
	end



	
	
	end
	
	
	
end

instance.Touched:Connect(kills100)

Could you put it all in a code block, and remove the unecessary blank lines from it?

Also, kills100 is still not defined anywhere I can see…

So i think your problem is you’re not setting character to part.Parent, which is what you called the first parameter in kills100.

Where is kills100 defined though? Do you see it anywhere?

Nevermind, found it above the code block…

Change this to:
local Character = part.Parent

I did that, still nothing happens.

What does it print now?

Head

Left Arm

Right Leg

Left Leg

Humanoid

HumanoidRootPart

Health

BodyColors

Torso

Does the character have a right arm in explorer?

Yes, Is this supposed to happen?

No, it should be printing a Right Arm too, unless you’re missing something.

Nevermind i just saw Right Arm in the output

Now try replace this with:
if table.find(ValidParts, child.Name) then