I made the “Drive” and “Sounds” LocalScripts into ModuleScripts and placed them in another place. This allows me to e.g make the engine sound running even after exiting the vehicle, which would of course also enhcance realism.
This is my “Sounds” module: Sounds module - Pastebin.com.
And this a snippet of my “Drive” module where I set up the Sounds module:
Character.Humanoid.Seated:Connect(function(active, seatPart)
if HeartbeatLoop then HeartbeatLoop:Disconnect() end
if not active then return end
local vehicle = seatPart:FindFirstAncestorOfClass("Model")
if not vehicle:HasTag("Vehicle") or not seatPart:IsA("VehicleSeat") then return end
Player.PlayerGui:WaitForChild("Vehicle Interface")
initialize(vehicle)
Sounds.initialize(vehicle)
end)
And here is a video showing my issue. (Reminder that the sound is the important thing):
So yeah, there is lots of weird stuff happening with the audio that should not happen.