Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to detect time position of a sound ?

Asked by 2 years ago
Edited 2 years ago

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

Log in to vote
1
Answered by 2 years ago
Edited 2 years ago

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)
0
unfortunately this is not working DylanMonrency 4 — 2y
0
There no error, nothing happen just DylanMonrency 4 — 2y
0
Oopsthere was a typo in the script. Fixed it! T3_MasterGamer 2189 — 2y
0
Still not working, idk why, but that not work DylanMonrency 4 — 2y
View all comments (2 more)
0
changed it again! it should work by now, otherwise there might be a different error T3_MasterGamer 2189 — 2y
0
Still not Working, but i think it's problem about Roblox, not your script, but thx DylanMonrency 4 — 2y
Ad

Answer this question