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

PlaybackLoudness not working on servers?

Asked by 8 years ago

I am making an audio visualiser that works with a spotlight, but for some reason, when I try it on a server, it doesn't work, but when I run it on Studio it is fine, here is the script:

script.Parent.MouseButton1Click:connect(function()
    if script.Parent.Parent.Toggle.Value == false then
        script.Parent.Parent.Toggle.Value = true
        while script.Parent.Parent.Toggle.Value == true do
            wait(0.5)
            script.Parent.Parent.Parent.Parent.VisualiserSpotlight.SpotLight.Brightness = script.Parent.Parent.Parent.Parent.SoundBoard.SurfaceGui.EnterA.Sound.PlaybackLoudness/100+0.5
            print(script.Parent.Parent.Parent.Parent.SoundBoard.SurfaceGui.EnterA.Sound.PlaybackLoudness/100+0.5)
            if script.Parent.Parent.Toggle.Value == false then
                break
            end
        end
    end
end)
0
Are there any errors? Also, you should use variables more. It would help clean up your code. Goulstem 8144 — 8y
0
you shouldnt have 4 Parents in a row in your script Volodymyr2004 293 — 8y
0
Local script? DjinoKip 78 — 8y
0
I've got the same problem. I'm quite experienced in Roblox Lua aswell, I'm quite sure it doesn't work online. Cuvette 246 — 8y

1 answer

Log in to vote
0
Answered by
RubenKan 3615 Moderation Voter Administrator Community Moderator
8 years ago
Edited 8 years ago

I've already sent an email to roblox support on this, they said they are going to fix this in ~mid january, for now PlaybackLoudness can be accesed from localscripts only.

I sent them this file, wich has the same issue https://www.roblox.com/games/536528114/-

Ad

Answer this question