Help to program mouth to sync up to music

  1. What do you want to achieve?
    I want to make a mouth sync to lyrics like a chuck e cheese show.
  2. What is the issue?
    Every method I tried has turn out to get out of sync with the music.
  3. What solutions have you tried so far?
    Ive tried to code my own way, but it failed.

This mouth is a 2d image that I want to run ingame synced up with music for all players.

*If you have ever seen rockafire replay. I want to make something like that programing style.

If you mean that it moves its mouth as if “talking”, try doing something with PlaybackLoudness.

This is not as I want as I want to be able to manually program each show with a data type system like stated below.

I came here for help, not for you saying to give up.

But how would I program a script to decode it to make the mouth move?

Or how would I even make a system to program the 1s and 0s to the music?

How does this help me program the 1s and 0s?

But how will I program the 1s and 0s to sync up to the music?

Are you using mesh deformation for a mouth? Or is it just decals for the mouth?

Im using decals for the mouths.

As far as I know, there isn’t a way to change or make a basepart or meshpart “Flexible” like rubber or a mouth meaning this would take a lot of code. You could make an animated mouth that has an animation of it lipsyncing to the audio you have.

Im using decals as stated, also I was asking how to make the decal mouths using binary code. (with a recording bitrate of .075 i believe)

Can you please just tell me how to use celiatronics?

im guessing you mean a like manual mouth movement system with the lips in sync
this will take a lot of work
now dont complain that im like telling you to give up but you will probably have to do a table for every song with a list of numbers corresponding to every mouth move
you could do like

local song1 = {
       --time (in ms probably) --number for mouth movement
     { 5217,                            4}
}

or something like that

Ok, so the system runs on binary and I want to know how I can make the mouth movements with binary. (The system has a “recording bitrate” of 0.075)

So I had a recording system like this but it was not syncing up well.

local rVar = false
local Var = ""

function ClickTest()
	game.ReplicatedStorage.AnimatronicEvents.Nerd:FireServer()
	rVar = true
end

function UnClickTest()
	game.ReplicatedStorage.AnimatronicEvents.NerdOff:FireServer()
	rVar = false
end

local l__mouse__1 = game.Players.LocalPlayer:GetMouse();
l__mouse__1.KeyDown:connect(function(p20)
	if p20 == "v" then
		ClickTest();
	end;
end);
l__mouse__1.KeyUp:connect(function(p21)
	if p21 == "v" then
		UnClickTest();
	end;
end);

while true do
	if script.Parent.Recording then
	if rVar == true then
		Var = Var .. "1"
	else
		Var = Var .. "0"
	end
	script.Parent.Var.Value = Var -- save the Var string to the Var StringValue
		wait(0.0075)
		end
end```

what do you mean with binary? like you input binary numbers?

If you look at the script I provided above, it explains it.

But this script gets out of sync quick.