Hi everyone, i’m here to show a module i’ve made that update’s your roblox character in-game the moment you change your avatar from the website.
- So why is this useful?
It’s useful for roleplaying games where someone doesn’t have to reset and walk all the way back to where they previously were as some games could be very large so it’d be annoying to have to travel back, but just in general not having to reset and having your avatar in-game update on the go make’s this a very useful utility for games ranging to all genres.
PROS & CONS | Read
PRO’s
- What are the pro’s of this module?
This module is ran on the server, this allows for better security so you’re assured that no exploiter can utilize this to abuse your games to any effective extent.
This module also replicates every avatar change you make on the website and that it updates within just a second. (̶T̶h̶i̶s̶ ̶d̶i̶f̶f̶e̶r̶s̶ ̶a̶ ̶t̶i̶n̶y̶ ̶b̶i̶t̶ ̶t̶o̶ ̶R̶1̶5̶ ̶c̶h̶a̶r̶a̶c̶t̶e̶r̶s̶ ̶-̶ ̶R̶e̶a̶d̶ ̶c̶o̶n̶s̶)̶ (Avatar Bundles now replicate for R15 rigs.)
CON’s
- What are the cons’s of this module?
This module is only limited to only handling servers with 150 players maximum (which should be enough) due to roblox throttling requests from in-game to 300 http requests per minute.
A̶n̶o̶t̶h̶e̶r̶ ̶c̶o̶n̶ ̶i̶s̶ ̶t̶h̶a̶t̶ ̶t̶h̶i̶s̶ ̶d̶o̶e̶s̶n̶’̶t̶ ̶u̶n̶f̶o̶r̶t̶u̶n̶a̶t̶e̶l̶y̶ ̶r̶e̶p̶l̶i̶c̶a̶t̶e̶ ̶R̶1̶5̶ ̶c̶h̶a̶r̶a̶c̶t̶e̶r̶ ̶m̶e̶s̶h̶e̶s̶ ̶(̶A̶v̶a̶t̶a̶r̶ ̶b̶u̶n̶d̶l̶e̶s̶)̶ ̶b̶e̶c̶a̶u̶s̶e̶ ̶c̶u̶r̶r̶e̶n̶t̶l̶y̶ ̶t̶h̶e̶y̶ ̶a̶r̶e̶n̶’̶t̶ ̶m̶o̶d̶i̶f̶i̶a̶b̶l̶e̶ ̶o̶n̶ ̶R̶1̶5̶ ̶r̶i̶g̶ ̶t̶y̶p̶e̶s̶ ̶o̶n̶l̶y̶ ̶R̶6̶.̶ ̶(̶I̶ ̶w̶i̶l̶l̶ ̶h̶o̶w̶e̶v̶e̶r̶ ̶r̶e̶l̶e̶a̶s̶e̶ ̶a̶ ̶u̶p̶d̶a̶t̶e̶ ̶f̶o̶r̶ ̶t̶h̶i̶s̶ ̶i̶f̶ ̶r̶o̶b̶l̶o̶x̶ ̶d̶o̶e̶s̶ ̶d̶e̶c̶i̶d̶e̶ ̶t̶o̶ ̶s̶u̶p̶p̶o̶r̶t̶ ̶i̶t̶ ̶a̶n̶y̶t̶i̶m̶e̶ ̶i̶n̶ ̶t̶h̶e̶ ̶f̶u̶t̶u̶r̶e̶ ̶s̶o̶ ̶d̶o̶n̶’̶t̶ ̶w̶o̶r̶r̶y̶!̶)̶ ̶ (Avatar Bundles now replicate for R15 rigs.)
Link’s
Video Demo - Watch to see how this replicates in-game!
Demo Game - Play this game to try it for yourself!
https://www.roblox.com/games/6233913454/
Module - Get it here!
https://www.roblox.com/library/6234613563/LiveCharacter
Usage
Documentation
Example usage :
auto-updates every player’s character on join
local Players = game:GetService("Players")
local LiveCharacter = require(LiveCharacterModule) -- Define path here!
Players.PlayerAdded:Connect(function(playerObject)
local LiveCharacterController = LiveCharacter:autoUpdatePlayerAppearance(playerObject)
end)
Functions/Methods
Every function’s first argument has to be a player object
ignoreList is a argument that takes a table, if not included in as a argument to a function the module will not apply any ignoring to anything
if the value of one of the keys is set to true it will ignore it, if it’s set to false it will not ignore it.
{
IgnoreAccessoryUpdates = false,
IgnoreShirtUpdates = false,
IgnorePantsUpdates = false,
IgnoreTShirtUpdates = false,
IgnoreFaceUpdates = false,
IgnoreBodyColorUpdates = false,
IgnoreBodyScaleUpdates = false,
IgnoreAnimations = false
}
it does not have to be this entire table in the argument it can also simple just be
{
IgnoreAccessoryUpdates = true,
IgnorePantsUpdates = false,
}
Function/Methods : autoUpdatePlayerAppearance
Args (1 : playerObject, 2 : ignoreList (optional argument) )
Info : Automatically updates a player
local LiveCharacterController = LiveCharacter:autoUpdatePlayerAppearance(playerObject, ignoreList)
LiveCharacterController:toggleAutoUpdating(boolean) --> true/false (will pause or unpause the auto updating)
LiveCharacterController:Disconnect() --> will completely stop the auto updating
Function : updatePlayerAppearance
Args : (1 : playerObject, 2 : ignoreList (optional argument) )
Info : Updates a player only once
local LiveCharacterController = LiveCharacter:updatePlayerAppearance(playerObject, ignoreList) --> updates a player normally like autoUpdatePlayerAppearance but only updates once
Update Log - Last update 2/13/2021
Log - 2/13/2021
- Complete rewrite for how updates are rendered, completely now dependant on HumanoidDescription’s now.
- Some other fixes
Log - 2/13/2021
- Added support for R15 Avatar Bundle updates.
- Added a fix for R6 avatar bundles not being applied under specific circumstances.
Log - 1/14/2021
- Applied R15 Animation changing
- Ignore list - IgnoreAnimations
Log - 1/14/2021
- Added a security patch to accessories (due to exploiters parenting them into workspace)
- Added R15 Avatar scaling update | IgnoreList - IgnoreBodyScaleUpdates
Log - 1/13/2021
- Bug fixes
- Overall code quality improvements
- Methods for autoUpdatePlayerAppearance (check docs for usage)
toggleAutoUpdating - Function
Disconnect - Function - IgnoreList argument for autoUpdatePlayerAppearance and updatePlayerAppearance (check docs for usage)
- Yes
- Maybe
- No
0 voters