Hello, I need to make it so a player can see their own avatar in a dummy by “Apply Description”. Everything works well but as soon as somebody else joins, my dummy copy avatar is being replaced with my friend’s avatar. Sometimes , the avatar of the first player who joined is the same on everyone’s screen.
however, you can not apply description in a local script
here is a script that is being used
local LocalNPC = game.Workspace.LocalNPC.Humanoid
local Players = game:GetService("Players")
game.Players.PlayerAdded:Connect(function(player)
LocalNPC:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
end)
you can do something similar like:
Making a remoteevent:
remote.OnServerEvent:connect(function(p, targ)
local humanoid = targ:FindFirstChild'Humanoid'
if humanoid then
humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
end
end)
LocalScript (can be inside the npc or player):
local LocalNPC = script.Parent -- or game.Workspace.LocalNPC.Humanoid
remote:FireServer(LocalNPC)
or you can use a serverscript inside the player’s character if you are using it for players. and just set it like this:
local player = script.Parent
player.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))