Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

play sound at certain value?

im trying to play a sound when a value is equal to or greater then something but when i play the game the audio plays and doesn't work after Code:

temp = workspace.Values.Temp audio = workspace.Values.Audio

wait(1)
temp.Changed:connect(function()
	if temp.Value < 3449 then
		audio.TempWarning:Play()
	elseif temp.Value > 3500 then
		audio.TempWarning:Stop()
	end
end)

1 answer

use game.Workspace, local temp, local audio and use a normal script

wait() will malfunction

This discussion is preserved as it was. New answers, comments, and votes are closed.