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

How to play animations on a custom character that bypass filtering?

Asked by
spynaz 30
8 years ago

I tried setting the player's character to a custom character model and then playing animations. Turns out they weren't being replicated to other players.

I did some testing and it seems that setting the player's character by doing Player.Character = game.Workspace.Character, and then playing animations will not bypass filtering. However if you just call the :LoadCharacter() function on the player, then it will. It seems like ROBLOX just whitelists the player's joints or something, when it loads the player's character for you.

The problem is, you can't really use custom characters. I tried renaming the custom character to StarterCharacter and putting it in StarterPlayer so that when I call the :LoadCharacter() method, it will spawn the player using the custom character. However, the problem with that is it just resets the joints to be the default character joints, which just messes it up. I tried setting the joints back, after loading the character, and it works sometimes but sometimes it doesn't. This method is kind of glitchy and not really efficient. Anyone know a better way?

Oh and by the way, using remote events or remote functions will not help in this case. They will most likely cause a delay before the animation appears for other players, and I can't afford that. My game is about sword fighting and w/ animation delays it will not work out because players won't have enough time to react.

Answer this question