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)
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/-