Easy Written By JollyGameCrazy

Sound Visualisers Created on: 01-04-2020

This will tell you how to create your own sound visualiser.

To create a sound visualiser you'll have to create a local script located in StarterGui and create fuction using the service "RunService".

game:GetService("RunService").RenderStepped:Connect(function()

end)

Within this function, you can define a local variable to inhibit the playback loudness.

	local loudness  =  workspace.Sound.PlaybackLoudness

After defining this variable, you can start adding equalities or if statements to make certain events occur. Such as to change the size of an object:

local part = workspace.Part
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

game:GetService("RunService").RenderStepped:Connect(function()
		
	local loudness  =  workspace.Sound.PlaybackLoudness
	local sizeincrement = loudness/60
	part.Size = Vector3.new(sizex, sizeincrement, sizez)
	part.Position = Vector3.new(positionx, positiony + (sizeincrement/2), positionz)
		
end)

This script will set the size of the object on the Y-axis to the playback loudness divided by 2. And, so the object doesn't grow on both sides, the position is moved upwards to compensate.

Easy Written By JollyGameCrazy

See JollyGameCrazy's profile on Roblox

Discussion