After continues trys to change to code so it works, it still doesnt. I give up now since i am already working 2 days on it with no success whatsoever. So heres the thing. The sound should be hearable for everyone.
Thanks for the help.
Current code thst is used in the script
local Sound = script.Parent.Parent.Main.Sound
local sound = script.Parent.Parent.Main.Buzzsaw2
local sound = script.Parent.Parent.Main.Buzzsaw
local sound2 = script.Parent.Parent.Main.Normal
local sound3 = script.Parent.Parent.Main.Normal2
local sound4 = script.Parent.Parent.Main.Spool
local sound4 = script.Parent.parent.Main.Spool2
local On = script.Parent.On
local Throttle = script.Parent.Throttle
local ThrottleIncrase = 0
local BasePitch = 1
local MaxPitch = 1.95
local IncreaseAmount = 0.6
-- Connect a function to the Throttle value changing
while true do
script.Parent.Throttle.Changed:Connect(function(newValue)
-- Update the pitch of the sound
if newValue > 0 then
sound.MaxPitch = 1.2
sound.Normal.Pitch = sound.BasePitch + (sound.MaxPitch - sound.BasePitch) * newValue
sound.Normal2.Pitch = sound.BasePitch + (sound.MaxPitch - sound.BasePitch) * newValue
sound.Buzzsaw.Pitch = sound.BasePitch + ((sound.MaxPitch - sound.BasePitch) * newValue) / 5
sound.Buzzsaw2.Pitch = sound.BasePitch + ((sound.MaxPitch - sound.BasePitch) * newValue) / 5
sound.Spool.Pitch = sound.BasePitch + ((sound.MaxPitch - sound.BasePitch) * newValue) * 1.4
sound.Spool2.Pitch = sound.BasePitch + ((sound.MaxPitch - sound.BasePitch) * newValue) * 1.4
else
sound.Normal.Pitch = sound.BasePitch
sound.Normal2.Pitch = sound.BasePitch
sound.Buzzsaw.Pitch = sound.BasePitch
sound.Buzzsaw2.Pitch = sound.BasePitch
end
-- Play or stop the Buzzsaw sound based on throttle value
if newValue > 0.8 then
if sound.Buzzsaw.Playing == false then
sound.Buzzsaw:Play()
end
if sound.Buzzsaw2.Playing == false then
sound.Buzzsaw2:Play()
end
else
if sound.Buzzsaw.Playing then
sound.Buzzsaw:Stop()
end
if sound.Buzzsaw2.Playing then
sound.Buzzsaw2:Stop()
end
end
-- Play or stop the Spool sound based on throttle value
if newValue > 0.1 then
if sound.Spool.Playing == false then
sound.Spool:Play()
end
if sound.Spool2.Playing == false then
sound.Spool2:Play()
end
else
if sound.Spool.Playing then
sound.Spool:Stop()
end
if sound.Spool2.Playing then
sound.Spool2:Stop()
end
end
end)
end
Location in the model
Video how it should sound