I have this sound and this is my attempt at trying to check and run code;
runService.RenderStepped:Connect(function()
if game.SoundService.Temp["Pmac - One (Loneliest Number Rap)"].TimePosition == 95 then
game.SoundService.Temp["Pmac - One (Loneliest Number Rap)"].ReverbSoundEffectEnd.Enabled = true
spawn(function()
game.SoundService.Temp["Pmac - One (Loneliest Number Rap)"]:Pause()
game.SoundService.Temp["Pmac - One (Loneliest Number Rap)"]:Play()
wait(.25)
game.SoundService.Temp["Pmac - One (Loneliest Number Rap)"].ReverbSoundEffectEnd.Enabled = false
end)
game.SoundService.Temp["Pmac - One (Loneliest Number Rap)"]:Stop()
game.SoundService.Effects["Boom Sound Effect"]:Play()
playerGui.EndScreen.Enabled = true
end
end)
You should also check if it’s greater than the specified number. Chances are, RenderStepped is not picking up every single number as it usually fires at 60fps.
I would read what dukzae said. I do not understand RenderStepped, but sometimes you can’t just always depend on the value to be that when it checks, because it is always changing. Try doing the actions when the value is greater than or equal to 95.