Attempt to perform arithmetic (mul) on number and nil?

So I’m gewtting the error, wich you can see in the tilte, at this part of my script:

for i,v in pairs(player.Values:GetChildren()) do
			if v.Name:find("Rune") then
				totalRunesMuliplier += v.Value * runesModule.Runes[v.Name]
			end
		end

its going trough the values wich are named “WoodRune” or “StoneRune” etc. Then it will take a value from the module script and when I print it does print but sometimes it prints nil at the “runesModule.Runes[v.Name]”

So someone please help me!

Probably its because something is wrong with the module script. It doesn’t find anything so just makes runesModule.Runes[v.Name] = nil, and then tries to multiply nil with a number.

Will it work with another if statements?

for i,v in pairs(player.Values:GetChildren()) do
			if v.Name:find("Rune") then
if runesModule.Runes[v.Name] ~=nil then
				totalRunesMuliplier += v.Value * runesModule.Runes[v.Name]
			end
		end