so im trying to make a script which increased/decreases players fov based on songs volume.
local cam = workspace.CurrentCamera
local sound = workspace.Song
if sound.IsPlaying == true then
while true do
wait()
cam.FieldOfView = 70 + (sound.PlaybackLoudness / 50)
end
end
is there any way to make it work or make it better? also its a local script but thats not the matter.

2 comments
What you want to make it better?
no i mean fix the script