I have tried many ways and nothing is working, im trying to convert a r15 dummy and make it look like the player locally.
Maybe try Humanoid:ApplyDescription(), Players:GetHumanoidDescriptionFromUserId(), or Player:LoadCharacterWithHumanoidDescription().
i tried but nothing happens unless i have been doing it wrong
Can you give me the script you have been trying and I can see if there are any errors.
game.Players.PlayerAdded:Connect(function(plr)
script.Parent.Humanoid:ApplyDescription(plr.Character.Humanoid:GetHumanoidDescriptionFromUserId(plr.UserId))
end)
this is a local btw
So this is under a humanoid in the workspace correct?
its in a dummy just in the character nothing else
Let me rephrase that, is it a descendant of the workspace
?
yes the npc is in workspace, some say that i should clone it using localscript
LocalScripts cannot run under the workspace if they are not under a character model, I recommend putting the LocalScript in StarterPlayerScripts
, with the following code:
local humanoidToEdit = nil -- replace nil with the humanoid
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local humanoid = character:WaitForChild("Humanoid")
humanoidToEdit:ApplyDescription(humanoid:GetHumanoidDescriptionFromUserId(player.UserId))
(I think it should work)
local humanoidToEdit = workspace.ThePlayer:WaitForChild("Humanoid") -- replace nil with the humanoid
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:wait()
local humanoid = character:WaitForChild("Humanoid")
humanoidToEdit:ApplyDescription(humanoid:GetHumanoidDescriptionFromUserId(player.UserId))
This is will probably work (GetHumanoidDescriptionFromUserId is a method of Players
and not a Humanoid
):
local humanoidToEdit = nil -- replace nil with the humanoid
local Players = game:GetService("Players")
local player = Players.LocalPlayer
--local character = player.Character or player.CharacterAdded:wait()
--local humanoid = character:WaitForChild("Humanoid")
humanoidToEdit:ApplyDescription(Players:GetHumanoidDescriptionFromUserId(player.UserId))
So, what we can do is, on the Server, when a Player joins, clone a dummy, set the appearance, and then let the client make it visible, so no other client can see it.
im wanting to make a loading screen and have the dummy aka player be sitting somewhere
What do you mean by that, like is it a viewport Frame, or using Camera manipulation, etc.
why not just clone the character?
Yeah, this is what I was thinking.
You can use CreateHumanoidModelFromUserId
It’s as simple as this local script put in PlayerScripts
local Players = game:GetService("Players")
local LocalPlayer = Players.LocalPlayer
local Test = Players:CreateHumanoidModelFromUserId(LocalPlayer.UserId)
Test.Parent = workspace
Thank you dude. You basically told me the solution to my problem (I am not the OP of this forum, but still thank you)