Hello, good morning, I have the problem that when I hit a npc with the car it stops the sound of the engine and I know that it is because they have a humanoid. How can I do it to fix it?
Car.PrimaryPart.TouchEnded:Connect(function(touch) Ground.Touched:Connect(function(touch) if not debounce then debounce = true if touch.Parent:FindFirstChild('Humanoid') then soundEngine:Stop() fire.Enabled = false end wait(2) debounce = false end end) end)
You can check the name. Put this in the humanoid check.
if touch.Name ~= "NPC" then --Your code end