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

How to detect time position of a sound ?

Hi, for anyone has no understand what i want it's simple, for exemple, detect when sound his position at 60 sec, for exemple. There is a way to detect this ( exepted make a wait() ), i'v been try sound.TimePositio, but this is not working.

1 answer

✓ Accepted answer

Use Instance:GetPropertyChangedSignal().

Sound:GetPropertyChangedSignal("TimePosition"):Connect(function()
	if Sound.TimePosition >= 60 then
		print("Sound just hit at the time position of 60!")
	end
end)

6 comments

0

unfortunately this is not working

0

There no error, nothing happen just

0

Oopsthere was a typo in the script. Fixed it!

0

Still not working, idk why, but that not work

0

changed it again! it should work by now, otherwise there might be a different error

0

Still not Working, but i think it's problem about Roblox, not your script, but thx

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