I had enough updating updating the tool itself so I made a module script to configurate the tools stats
["StarterBat"] = {["Strength"] = 10, ["CoolDown"] = 1, ["Points"] = 1}
But now the physics is broken? I don’t know why this is happening, I’m still learning how to use bodyvelocity
local strength = moduleformadzhis.GetStrengthValue(script.Parent.Name)
local delta = root.Position - myRoot.Position
local plr = getPlayer()
tagHuman(human)
human:TakeDamage(HitDamage)
table.insert(HitVictims, human)
local bv = Instance.new("BodyVelocity")
bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
bv.velocity = delta.unit * strength
bv.Parent = root
moduleformadzhis.Hit(root.Parent, plr, script.Parent.Name)
moduleformadzhis.GetSound(root.Parent)
game:GetService("Debris"):AddItem(bv, 0.05)