diff --git a/Hunter.rbxl b/Hunter.rbxl index 9847947..1e695d5 100644 Binary files a/Hunter.rbxl and b/Hunter.rbxl differ diff --git a/scripts/ButtonAudio.client.luau b/scripts/ButtonAudio.client.luau index 642c505..394f433 100644 --- a/scripts/ButtonAudio.client.luau +++ b/scripts/ButtonAudio.client.luau @@ -5,6 +5,8 @@ local Sounds = require(ReplicatedStorage:WaitForChild("SniperEffects") :: Module local playerGui = Players.LocalPlayer:WaitForChild("PlayerGui") local hoverDef = Sounds.SOUNDS.ButtonHover +-- The supplied recording has about 0.38 seconds of silence before the cue. +local HOVER_START_SECONDS = .38 local hover = Instance.new("Sound") hover.Name = "SniperButtonHover" hover.SoundId = hoverDef.id @@ -19,6 +21,7 @@ local function playHover() if volume <= 0 then return end hover:Stop() hover.Volume = volume + hover.TimePosition = HOVER_START_SECONDS hover:Play() end local bound: {[GuiButton]: boolean} = setmetatable({}, {__mode = "k"})