Here is my damage script. It is put inside the bullet when it is fired. I have tried removing the bullet in many different spots but they destroy the script. Please help.
script.Parent.Touched:Connect(function(hit) game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(plr, h, mouse) if hit.Name == "Handle" then return end local h = hit.Parent:FindFirstChild("Humanoid") if h then if hit.Parent.Name ~= plr.Name then h:TakeDamage(10) end end end) end)