Goal: I want to make an audio trigger a particle emitter when it reaches a certain timeframe
As seen in this picture, I try to do this, but it does not work
Questions:
Is there a more efficient way I can do this?
Is “TimePosition” reliable?
Thanks
Goal: I want to make an audio trigger a particle emitter when it reaches a certain timeframe
As seen in this picture, I try to do this, but it does not work
Questions:
Is there a more efficient way I can do this?
Is “TimePosition” reliable?
Thanks
It should be reliable, but you need to read the value from the sound object itself. Your first line is only storing the value of TimePosition at the start of the script, but it is not a reference to that property.
Try this instead:
repeat wait() until workspace.BlazzersGoalHorn.TimePosition >= 4.5
instead of “wait()” do
game:GetService("RunService").Heartbeat:Wait()
for it, it’s faster to be more precise
— You can use events instead of loops
— like this
Sound.Played:Connect(function()
ParticleEmitter.Enabled = true
wait(4.5)
ParticleEmitter.Enabled = false
end)
This worked! Thank you so much!