Players.CoCo_Finessin.PlayerGui.ControlsGui.Controls:642: Out of local registers when trying to allocate RemoveTeamateNumber: exceeded limit 200

can someone please explain the error shown in the title to me?

Apparently, you are allowed to define a maximum of 200 local variables inside a single function. The error is telling you that you’re exceeding that limit.

1 Like

Thank you. I was confused at first because the function it was telling me that I had too many variables in only had 2 locals, then I came to realize that my script as a whole counts as a single function when speaking in these terms. one major deficiency in my code was not using a table for all my animations (about 150). after turning them into tables I’ve got about 150 less locals :joy:

1 Like