So I have this code: tool = script.Parent player = game.Players.LocalPlayer mouse = player:GetMouse() tool.Activated:connect(function() local Part = Instance.new("Part", workspace) Part.Size = Vector3.new(0.1,0.1,0.1) Part.Shape = ("Ball") Part.Position = Vector3.new(-3.5,0.5,4.5) Part.CFrame = tool.Handle.CFrame Part.CFrame = CFrame.new(Part.Position,mouse.Hit.p) local v = Instance.new("BodyVelocity", Part) v.velocity = Part.CFrame.lookVector *90 v.maxForce = Vector3.new(math.huge, math.huge, math.huge) Part.Touched:connect(function(hit) if hit.Parent ~= player.Name and hit.Parent:FindFirstChild("Humanoid") ~= nil then hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health -25 end end) end)
But the problem is that when I shoot the tool, the bullet damages me too.
