#How to Sync player skin on a Dummy
68 messages · Page 1 of 1 (latest)
ApplyHumanoidDescription
already tried that
its not working for some reason
still not working i tried both
to link them
server sided ```local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local GetCharacter = Instance.new("RemoteEvent")
GetCharacter.Name = "GetCharacter"
GetCharacter.Parent = ReplicatedStorage
local function GetAppearance(UserID)
return Players:GetHumanoidDescriptionFromUserId(UserID)
end
GetCharacter.OnServerEvent:Connect(function(player)
local Appearance = GetAppearance(player.UserId)
GetCharacter:FireClient(player, Appearance)
end)
client sidedlocal ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local GetCharacter = ReplicatedStorage:WaitForChild("GetCharacter")
local localDummy = workspace:WaitForChild("Dummy")
GetCharacter:FireServer()
GetCharacter.OnClientEvent:Connect(function(Appearance)
if localDummy then
local success, err = pcall(function()
localDummy.Humanoid:ApplyDescription(Appearance)
end)
if not success then
warn("Failed to apply appearance:", err)
end
else
warn("localDummy not found!")
end
end)
this is the last one i tried
i tried manys
wait you can actually use a Localscript to load humanoiddescriptions to a rig
yea
actually put the rig in replicatedstorage
in workspace that wouldn't work since the localscript actions get ignored
so clone the rig, parent it to workspace and apply description
the code show
local function CreateOfflineCharacter(player)
if player.Character then
local characterClone = player.Character:Clone()
local dummy = game.ReplicatedStorage:FindFirstChild("Dummy")
if dummy then
local dummyClone = dummy:Clone()
dummyClone.Parent = game.Workspace
if dummyClone.PrimaryPart then
characterClone:SetPrimaryPartCFrame(dummyClone.PrimaryPart.CFrame)
characterClone.Parent = game.Workspace
if dummyClone:FindFirstChild("Character") then
dummyClone.Character:Destroy()
end
dummyClone.Character = characterClone
else
warn("PrimaryPart not found in cloned Dummy")
end
else
warn("Dummy not found in ReplicatedStorage")
end
else
warn("Player character not found")
end
end
local getCharacterEvent = Instance.new("RemoteEvent")
getCharacterEvent.Name = "GetCharacter"
getCharacterEvent.Parent = game.ReplicatedStorage
getCharacterEvent.OnServerEvent:Connect(function(player)
CreateOfflineCharacter(player)
end)
why do you need remotevent and whats the deal with setprimarypartcframe lol
you don't even need setprimarypartcframe when theres humanoidrootpart
remoteevent to link it to my client script
and the other is for positioning
i just said that test it in client
not server
forget about this script its the wrong one 🤣
local Players = game:GetService("Players")
local GetCharacter = ReplicatedStorage:WaitForChild("GetCharacter")
local dummyTemplate = ReplicatedStorage:WaitForChild("Dummy")
local clonedDummy = dummyTemplate:Clone()
clonedDummy.Parent = workspace
clonedDummy.Name = "Dummy"
local localDummy = workspace:WaitForChild("Dummy")
local function applyAppearance(Appearance)
if localDummy then
local success, err = pcall(function()
local humanoid = localDummy:WaitForChild("Humanoid")
humanoid:ApplyDescription(Appearance)
end)
if not success then
warn("Failed to apply appearance:", err)
end
else
warn("localDummy not found!")
end
end
GetCharacter.OnClientEvent:Connect(function(Appearance)
applyAppearance(Appearance)
end)
here
clone work but appearance still not
i dont understand why its not working
no output error

whats the point of localDummy if workspace won't scan for Localscript
for the function
im not just gonna clone
or im missing smth?
basically
i clone the dummy that is in the replicatestorage like you said
and then i local the dummy that i cloned
to apply my function for the appearance
or maybe i didnt understand u
why do you also need a pcall function
it runs the function you pass to it and catches any errors that occur
simply
wait srry brb quick imma go afk 10 min im gonna try smth
it may work
local dummy = game.ReplicatedStorage.Dummy
local cloned = dummy:Clone()
cloned.Parent = game.Workspace
local e = game.Players.LocalPlayer:GetHumanoidDescriptionFromUserId(game.Players.LocalPlayer.UserId)
cloned.Humanoid:ApplyDescription(e)```
there now try
GetHumanoidDescriptionFromUserId is not a valid member of Player "Players.(myusername)" - Client - LocalScript:4
woops
game.Players:GetHumanoidDescriptionFromUserId(game.Players.LocalPlayer.UserId)
try that
man
i love you
W
thank you
np
and if i want to add an animation to the dummy
its script server sided or client?
yea i got my answer
its in client side
server side cant work
animation to the dummy? server and client can be fone