So I've been wondering, I have this gun kit set up already, and I want it to shoot through cancollide false objects for example; armour. Basically, the bullet registers armour as an object, which it is but I want it to be a part so like if the player shoots one of the armour pieces, the player wearing the armour gets damaged. I've looked through EVERY single script of this gun kit but can't find a result on how to do this. Here's a damagemodule in serverscriptservice, (may not be enough).
local module = {} module.CanDamage = function(obj, player) if obj:FindFirstChild("Humanoid") then local p = game.Players:GetPlayerFromCharacter(obj) local creator = obj:FindFirstChild("Creator") if creator then p = creator.Value end if p then if p == player then return false else if p.Neutral or player.Neutral then return true elseif p.TeamColor ~= player.TeamColor then return true end end else return true end end return false end return module
Can anyone help? DM me if you want more of the scripts. kanchoplets#9180