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

Why is my script that checks if an audio has changed not working?

second:

workspace.Audio.Changed:Connect(function(Change1)
	print(Change1)
end)

first script:

wait(2)
workspace.Audio:Play()

The second script never fires, does the audio not fire when the playing box has been changed?

1 answer

✓ Accepted answer

It's better to use GetPropertyChangedSignal. This method returns an event that behaves exactly like the Changed event, except that the event only fires when the given property changes. You will need to change the "PROPERTY_HERE" to the property you are changing.

workspace.Audio:GetPropertyChangedSignal("PROPERTY_HERE"):Connect(function(Change1)
    print(Change1)
end)

You can find all about it here

Please accept this answer if this helped!

2 comments

0

:Connect(function(Change1)

0

Doesn't work

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