I have been currently working on an Electric Train with an AC Motor called “M7” and what I want to do is to make the train propulsion sound as realistic as possible by using Sound.TimePostion, but the problem is that the train propulsion keeps glitching when the train accelerates.
Here is how the sound was supposed to sound like
I’ve tried using NumberValues to reduce the glitches and I used Playback speed in my script as well but none of that worked.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
while true do
wait(0.05)
if script.Parent.AssemblyLinearVelocity.Magnitude > 0.1 then
if script.Parent.Engine.IsPlaying == false then
script.Parent.Engine:Play()
end
script.Parent.Engine.TimePosition = 0.1 + script.Parent.Velocity.Magnitude/2.3
else
script.Parent.Engine:Stop()
end
end