How do I update a mannequin to a Roblox user’s latest avatar so I don’t have to manually change it every time they changed heir avatar?

Here’s what I meant.

Let’s say I have a character, a character of mine and placed in my game. Let’s say I’ve updated my avatar, I want it to automatically change it through a script without manually changing it everytime. Any solutions? Should I use HttpService or any services?

2 Likes

Use

game:GetService("Players"):CreateHumanoidModelFromUserId(UserId)

putting your UserId in

4 Likes

There’s no actual way to make automatic changes from website to game. Try a manual request from the player themselves if they wish to update their appearance instantly.

Does this also work on all players on Roblox?

@anon81993163 no I mean, like if you have a character model of someone in the game, and let’s say they changed the avatar, I want the server also change the chat set model appearance depending on how their updated avatar looks like.

Live update or am I mixing up with something else? Could you clarify this?

yes it would work on any Player UserId you passed to it. It won’t change the model every time you change your avatar, when the server starts a new game it will fetch your most recent avatar look and use that.

You know those vibe games? They have something called top donator or anything like that which displays that user’s currently wearing avatar. If their avatar is changed, I want the server to change the character model of it.

I’ll give it a try soon, I’ll mark your solutions if it works.

Ah, I see what you mean now. If there’s a model somewhere in the server, load the new appearance of the specific UserId and apply to the dummy about every 5 minutes or whatever rate that doesn’t throttle it.

But, how would I load it? Using their userid?

You can’t really do this using a custom method with “HttpService” unless you use proxy services (which could be against the Terms of Service or Guidelines). Roblox has a security check called “Trust Check” which is manually granted to specific games.

As for updating this every time, you would theoretically have to create a new character each time which could pose lag for users near multiple characters being changed at the same time.

Your best bet is to just use the method posted by @ZombieCrunchUK and use the newest character whenever they join the game rather than constantly changing their character.

If you read about the line in the first reply earlier, use Players service and load the humanoid appearance. Either that or an alternative replacing the appearance only without having to refresh the entire model.

@ZombieCrunchUK @CreativeScripts @anon81993163 Thank you for the support.

2 Likes

Haven’t heard of this, had always used clone and delete scripts. I’ll try this the next time I need it :slight_smile:

1 Like