of     1   

ScriptedButton
#225806382Sunday, October 01, 2017 2:49 AM GMT

Hello, I am contacting Scripters to possibly get a resolution to my audio issue. I am using Adonis to play music, and the audio cuts out randomly whilst songs are playing, the audio issues are not solely with Adonis either, it is with various sound scripts in-game. If you guys could steer me in the right direction in regards to a solution, I would greatly appreciate it.
amanda
#225806461Sunday, October 01, 2017 2:51 AM GMT

your sound scripts are most likely operating on a time limit before going to the next sound so say 30 seconds you may have sounds that are 10, 40 seconds, 3 minutes, but they will all cut out at 30 seconds(for example)
ScriptedButton
#225806477Sunday, October 01, 2017 2:52 AM GMT

The problem is, the sounds aren't cutting out at a fixed interval, it's just completely random.
amanda
#225806513Sunday, October 01, 2017 2:53 AM GMT

have you tried making your own script?
ScriptedButton
#225806537Sunday, October 01, 2017 2:54 AM GMT

I know I could just make my own script, but I'm working with a game that I was asked to dev for, and I want to identify the cause of the audio cutting out.
amanda
#225806624Sunday, October 01, 2017 2:56 AM GMT

post the code
ScriptedButton
#225806642Sunday, October 01, 2017 2:56 AM GMT

The problem is, I don't know which script is causing it, that's what I am trying to identify.
amanda
#225806699Sunday, October 01, 2017 2:58 AM GMT

well i would assume you only have one script controlling the audio IF NOT, that should give you a good idea of the problem, because multiple scripts trying to control the audio at once might give random cuts
ScriptedButton
#225806718Sunday, October 01, 2017 2:58 AM GMT

There are tons of different sounds in the game, and they all cut out randomly.
amanda
#225806773Sunday, October 01, 2017 2:59 AM GMT

show me, any script
ScriptedButton
#225806835Sunday, October 01, 2017 3:01 AM GMT

One script would not be helpful.
amanda
#225806930Sunday, October 01, 2017 3:03 AM GMT

well you don't know what the problem is you decided to not make your own script this all means you are currently depending on someone else to tell you what the problem is so you can fix it and you are giving me literally nothing to work with show me a script, and let me decide for myself if it is the problem or not
ScriptedButton
#225806955Sunday, October 01, 2017 3:04 AM GMT

There are literally 73 scripts that have to do with sound.
ScriptedButton
#225807007Sunday, October 01, 2017 3:05 AM GMT

I can add you to a TC or something.
amanda
#225807026Sunday, October 01, 2017 3:05 AM GMT

last chance i didn't ask for 73 scripts i asked for one, any of them if you don't reply with a script, i'm not helping anymore because you are just wasting my time
ScriptedButton
#225807093Sunday, October 01, 2017 3:07 AM GMT

eng = script.Parent.Parent.Engine seat = script.Parent maxSpeed = seat.MaxSpeed rotSpeed = seat.TurnSpeed BV = eng.BodyVelocity BAV = eng.BodyAngularVelocity currSpeed = 0 oldSpeed = 0 function stop() local speed = seat.Velocity.magnitude if speed < 2 then --If We're Barely Moving currSpeed = 0 script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Moving.Volume = 0.2 script.Parent.Parent.Engine.Idle:Play() --Kill Velocity script.Parent.Parent.Engine.Idle.Volume = 0.3 else --If not currSpeed = (speed * 0.9 - 0.8) * currSpeed / math.abs(currSpeed) script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Moving.Volume = 0.5 script.Parent.Parent.Engine.Idle.Volume = 0.3 end end while wait(0.1) do if seat.Throttle == -1 then --Turning script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Moving.Volume = .5 script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.4 BAV.angularvelocity = Vector3.new(0,rotSpeed * seat.Steer,0) else BAV.angularvelocity = Vector3.new(0,-rotSpeed * seat.Steer,0) end if seat.Throttle == 0 and currSpeed == 0 then script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.5 script.Parent.Parent.Engine.Moving:Pause() end if seat.Throttle == 0 and currSpeed ~= 0 then --If We're Trying to Stop stop() script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.2 script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Moving.Volume = 0.3 end if seat.Throttle == 1 then --If We're Trying to go Forwards script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.1 script.Parent.Parent.Engine.Moving.Volume = 0.2 if currSpeed < 0 then --If going backwards script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.1 script.Parent.Parent.Engine.Moving.Volume = 0.2 stop() else currSpeed = currSpeed + 1 --Go slightly faster than we already are if currSpeed > maxSpeed then --Limit our speed script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Idle:Pause() script.Parent.Parent.Engine.Moving.Volume = .5 currSpeed = maxSpeed end end elseif seat.Throttle == -1 then --If We're Trying to go Backwards script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.1 script.Parent.Parent.Engine.Moving.Volume = 0.2 if currSpeed > 0 then --If Going Forwards script.Parent.Parent.Engine.Moving:Play() script.Parent.Parent.Engine.Idle:Play() script.Parent.Parent.Engine.Idle.Volume = 0.1 script.Parent.Parent.Engine.Moving.Volume = 0.2 stop() --Stop else --Otherwise currSpeed = currSpeed - 0.8 --Reverse if currSpeed < maxSpeed * -0.7 then --If Going Too Fast currSpeed = maxSpeed * -0.7 end end end dir = eng.CFrame.lookVector BV.velocity = dir*Vector3.new(currSpeed,currSpeed,currSpeed) end
amanda
#225807258Sunday, October 01, 2017 3:10 AM GMT

A huge chunk of that is in a while loop that loops every .1 seconds so if your sounds are longer than .1 seconds, they are likely to cut out
ScriptedButton
#225807295Sunday, October 01, 2017 3:11 AM GMT

Ok, and any ideas why Adonis Music is cutting out?
amanda
#225807316Sunday, October 01, 2017 3:12 AM GMT

i dont know what that is show a script
Hydrula
#225807685Sunday, October 01, 2017 3:21 AM GMT

have you tried resetting the ######
ScriptedButton
#225828340Sunday, October 01, 2017 2:55 PM GMT

bump
d1shonour
#225829190Sunday, October 01, 2017 3:11 PM GMT

"73 scripts to do with audio" no, theres 73 copies to do with one script cloned.

    of     1