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

How would you make an FE audio visualizer?

Asked by 6 years ago

I have searched the internet for a while but none were helpful to me, so I would like to know if you guys knew how they are made so I could construct my own.

1 answer

Log in to vote
0
Answered by 6 years ago

You would have to Invoke the client to get the loudness.
You can use RemoteFunctions to do this.
Server Script:

1local LoudnessRemote = Instance.new("RemoteFunction")
2LoudnessRemote.Name = "LoudnessRemote"
3LoudnessRemote.Parent = game:GetService("ReplicatedStorage")`
4function GetLoudness(Player,Audio)
5    return LoudnessRemote:InvokeClient(Player,Audio)
6end
7print(GetLoudness(game.Players.Player1,workspace.Sound))
1Local Script:
2local LoudnessRemote = game:GetService("ReplicatedStorage"):WaitForChild("LoudnessRemote")
3LoudnessRemote.OnClientEvent = function(Audio)
4    return Audio.PlaybackLoudness
5end
Ad

Answer this question