Well I don’t know what’s wrong with the code! I don’t think that there is anything wrong with it! I don’t think I can use this code because it probably only is able to do the speakers on the y axis… Maybe I just need new code…
Code:
local part = game.Workspace.Audios.Audio
local part2 = game.Workspace.Audios.Audio2
local part3 = game.Workspace.Audios.Audio3
local part4 = game.Workspace.Audios.Audio4
local part5 = game.Workspace.Audios.Audio5
local part7 = game.Workspace.Audios.VIBESIGN.part
local part8 = game.Workspace.Audios.VIBESIGN.part2
local part9 = game.Workspace.Audios.VIBESIGN.part3
local part10 = game.Workspace.Audios.VIBESIGN.part4
local sizex = part.Size.X
local sizez = part.Size.Z
local positiony = part.Position.Y
local positionx = part.Position.X
local positionz = part.Position.Z
local sizex2 = part2.Size.X
local sizez2 = part2.Size.Z
local positiony2 = part2.Position.Y
local positionx2 = part2.Position.X
local positionz2 = part2.Position.Z
local sizex3 = part3.Size.X
local sizez3 = part3.Size.Z
local positiony3 = part3.Position.Y
local positionx3 = part3.Position.X
local positionz3 = part3.Position.Z
local sizex4 = part4.Size.X
local sizez4 = part4.Size.Z
local positiony4 = part4.Position.Y
local positionx4 = part4.Position.X
local positionz4 = part4.Position.Z
local sizex5 = part5.Size.X
local sizez5 = part5.Size.Z
local positiony5 = part5.Position.Y
local positionx5 = part5.Position.X
local positionz5 = part5.Position.Z
game:GetService(“RunService”).RenderStepped:Connect(function()
local loudness = game.Workspace.Sound.PlaybackLoudness
local sizeincrement = loudness/60
part.Size = Vector3.new(sizex, sizeincrement, sizez)
part.Position = Vector3.new(positionx, positiony + (sizeincrement/2), positionz)
part2.Size = Vector3.new(sizex2, sizeincrement, sizez2)
part2.Position = Vector3.new(positionx2, positiony2 + (sizeincrement/2), positionz2)
part3.Size = Vector3.new(sizex3, sizeincrement, sizez3)
part3.Position = Vector3.new(positionx3, positiony3 + (sizeincrement/2), positionz3)
part4.Size = Vector3.new(sizex4, sizeincrement, sizez4)
part4.Position = Vector3.new(positionx4, positiony4 + (sizeincrement/2), positionz4)
part5.Size = Vector3.new(sizex5, sizeincrement, sizez5)
part5.Position = Vector3.new(positionx5, positiony5 + (sizeincrement/2), positionz5)
if loudness >= 50 then
part.Material = "Neon"
part.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part2.Material = "Neon"
part2.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part3.Material = "Neon"
part3.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part4.Material = "Neon"
part4.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part5.Material = "Neon"
part5.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part7.Material = "Neon"
part7.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part8.Material = "Neon"
part8.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part9.Material = "Neon"
part9.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
part10.Material = "Neon"
part10.BrickColor = BrickColor.new(0.160784, 0.313725, 1)
else
part.Material = "Plastic"
part.BrickColor = BrickColor.new(0,0,0)
part2.Material = "Plastic"
part2.BrickColor = BrickColor.new(0,0,0)
part3.Material = "Plastic"
part3.BrickColor = BrickColor.new(0,0,0)
part4.Material = "Plastic"
part4.BrickColor = BrickColor.new(0,0,0)
part5.Material = "Plastic"
part5.BrickColor = BrickColor.new(0,0,0)
part7.Material = "Plastic"
part7.BrickColor = BrickColor.new(0,0,0)
part8.Material = "Plastic"
part8.BrickColor = BrickColor.new(0,0,0)
part9.Material = "Plastic"
part9.BrickColor = BrickColor.new(0,0,0)
part10.Material = "Plastic"
part10.BrickColor = BrickColor.new(0,0,0)
end
end)
Code:
local RunService = game:GetService(“RunService”)
local Music = workspace:WaitForChild(“Sound”)
local CurrentCamera = workspace.CurrentCamera
local ScreenShakeSettings = {
CameraMinFOV = 75,
CameraMaxFOV = 80,
CameraMaxVolume = 1200
}
game:GetService(“RunService”).RenderStepped:connect(function()
local CurrentLoudness = Music.PlaybackLoudness
local FOV = ScreenShakeSettings.CameraMinFOV + (ScreenShakeSettings.CameraMaxFOV - ScreenShakeSettings.CameraMinFOV) * (CurrentLoudness / ScreenShakeSettings.CameraMaxVolume)
if FOV >= 75 then
CurrentCamera.FieldOfView = FOV
else
CurrentCamera.FieldOfView = 200
local sound = workspace:WaitForChild(“Sound”)
local Camera = workspace.CurrentCamera
if (sound.PlaybackLoudness/1000) >= 0.30 and Camera.FieldOfView < 100 then
local Properties = {FieldOfView = 68 + (sound.PlaybackLoudness/100)}
local Info = TweenInfo.new(0.09, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut)
local T = game:GetService(“TweenService”):Create(game.Workspace.CurrentCamera, Info, Properties)
T:Play()
else
local Properties = {FieldOfView = 68 - (sound.PlaybackLoudness/1000)}
local Info = TweenInfo.new(0.10, Enum.EasingStyle.Sine, Enum.EasingDirection.In)
local T = game:GetService(“TweenService”):Create(game.Workspace.CurrentCamera, Info, Properties)
T:Play()
end
end
end)