So, I wanna make something, if I spawn a npc in studio when you join i want the npc to be your avatar. So if roblox joined the game the npc is roblox, if builderman joined its builderman, Does anyone know how to do this or can someone send a video?
Please include the nature of your request in the title. A title like “I need help” does not communicate anything useful and will cause your post to be ignored by many potential volunteers.
They want to make an NPC look like your character. Not change your character.
oh. ty for explaining. I hadnt understood the query
One thing you could do is have a basic NPC with no items or accessories on and apply a HumanoidDescription
(on the server if the character wants to be shown for everybody, or on the client to show just for one player), which this HumanoidDescription
can be obtained by using Players:GetHumanoidDescriptionFromUserId()
. Apply this to the Humanoid within the NPC and boom.
yea like if you joint the game, the npc or dummy turns into you, but if another players joined the npc is that player kinda. but to one persons pov its their characther but for another players pov is their characther
This would require abusing local parts. To create something that looks different on every client, each client has to modify it individually, since any server modifications will replicate to all clients. Perhaps @aninfiniteinferno’s solution will work with a LocalScript, but I don’t think so.
like arsenal the main menu it shows your character thats wht im trying to make
I’m going to write a short script and test if using HumanoidDescriptions on the client works.
Ah yes, the root of the problem. You can use :Clone()
to clone your character, and then place it in a ViewportFrame
. This will be done using a LocalScript and displayed in a GUI.
alright, ill wait till you finish
This was correct as Humanoid:ApplyDescription() can only be called by the backend server
So can someone sum it up how I can do it?
This summed it up pretty well.
The only problem, is that what do I put in the script, im not really a programmer.
I suggest checking out the Roblox Developer Hub pages for the ViewportFrame
. There is a small tutorial on there which shows how to initialize and set one up with Part
inside of it. You can then look at the code, figure out what each thing does, (which I believe the tutorial shows) and then change it from a Part to a completely cloned Character
.
Sorry ONE last thing, how do I clone a characther is it like duplicate?
You would use Instance:Clone()
, which in your case would be Character:Clone()
(Character can be whatever the Model is defined as.