Roblox "Endorsed Weapons Kit" does not damage r6 type players

I am studying and learning from the endorsed (weapons kit) right now and I found that shots fired from it can only damage r15 players.

I looked around for reasons that might cause this and I found that the “BulletWeapon” module only checks explodedPart.Name == "UpperTorso" so replaced that check with (explodedPart.Name == "UpperTorso" or explodedPart.Name == "Torso") but I am still unable to deal damage to r6 type players. Are there other common player checks that differ between the r6 and r15 that I am unaware of? Has anybody else tried modifying the kit in this way before?

Thanks!

  • e100gamma
4 Likes

Ok I still don’t know why it didn’t work but the built in humanoid check

function WeaponsSystem.getHumanoid(part)
	while part and part ~= workspace do
		if part:IsA("Model") and part.PrimaryPart and part.PrimaryPart.Name == "HumanoidRootPart" then
			print("humanoid")
			return part:FindFirstChildOfClass("Humanoid")
		end

		part = part.Parent
	end

doesn’t find humanoids in r6 players. I replaced it with

function WeaponsSystem.getHumanoid(part)
    if part and part ~= workspace then
		local humanoid = part:FindFirstChildOfClass('Humanoid')
		if humanoid then
			print("humanoid found")
			return humanoid
		else
			return WeaponsSystem.getHumanoid(part.Parent)
		end
	end
	return nil
end

And now it works.

7 Likes