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

Can use multiple Sounds to affect a Brick's properties?

Asked by 4 years ago

I am making a brick react to the playbackloudness of a sound ID. I have multiple sound ID's placed in Game.Workspace.MusicScript. S1, S2, S3 and so on. I have the brick's Material and Transparency reacting to Game.Workspace.MusicScript.S1.Playbackloudness but i'm looking to get it to react to multiple sound ID's instead of just one. This is my current layout of the script that is working find with S1 playbackloudness. Any advice would really help me out a ton.

game:GetService("RunService").RenderStepped:connect(function() local volume = (game.workspace.MusicScript.S1.PlaybackLoudness)

    if volume >= 800 then
    game.Workspace.Strobe1.Material = "Neon"
    game.Workspace.Strobe1.Transparency = 0.1

    if volume >= 775 then
    game.Workspace.Strobe1.Material = "Plastic"
    game.Workspace.Strobe1.Transparency = 0.2

1 answer

Log in to vote
-1
Answered by 4 years ago

max volume is 10 so maybe you can do 7.5 or 8 and you missed ends i think.

0
-1, the maximum PlaybackLoudness is 1000, not 10 DeceptiveCaster 3761 — 4y
0
The strobe is working, i have the ends. I'm just looking to make the strobe bricks react to multiple sound ID's and not just one DiploPlur -1 — 4y
Ad

Answer this question