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)

2 comments
Thank you very much, but I had to put touch.Parent.Name, thank you very much.
Ah, simple mistakes, I make it everytime. Glad I could help :)