Im trying to have a particle emitter get generally more violent when the playback loudness of an audio goes over a certain amount but i dont know how to pass multiple values into the particle emitter.
local PE = game.Workspace.FireThing1.ParticleBrick.ParticleEmitter
local NP = game.Workspace.NowPlaying
local V = game.Workspace.NowPlaying.Sooooooooong
local PE = game.Workspace.FireThing1.ParticleBrick.ParticleEmitter
game.Workspace.NowPlaying.ChildAdded:Connect(function()
local sound = game.Workspace.NowPlaying:FindFirstChildWhichIsA("Sound")
local PL = sound.PlaybackLoudness
repeat
PE.Lifetime = (1.5)(2.5)
PE.Size = 7
PE.Speed = 6
PE.SpreadAngle = (10)(10)
wait(.5)
PE.Lifetime = (2.5)(3.5)
PE.Size = 4
PE.Speed = 5
PE.SpreadAngle = (5)(5)
print("I ran")
wait(.5)
until (V.Value == false)
end)
i tried this but it doesnt seem to work.
