I’m trying to use a RemoteFunction to have the server apply a HumanoidDescription to a dummy in a viewport frame. I’m applying the player’s HumanoidDescription to the dummy, but it isn’t working. The dummy doesn’t look like the player.
This is a snippet of the LocalScript that invokes the RemoteFunction.
--Move gui
local loadingGui = script.Parent:WaitForChild("LoadingGui")
apply:InvokeServer(loadingGui.LoadingText.ViewportFrame)
loadingGui = loadingGui:Clone()
And this is a snippet of the server script that actually applies the HumanoidDescription.
game.ReplicatedStorage.DescriptionApply.OnServerInvoke = function(player, viewport)
--viewport.WorldModel.Character.Humanoid:ApplyDescription(player.Character:WaitForChild("Humanoid"):WaitForChild("HumanoidDescription"))
viewport.WorldModel.Character.Humanoid:ApplyDescription(players:GetHumanoidDescriptionFromUserId(player.UserId))
return nil
end
-
What do you want to achieve? I want to make a dummy in a viewport frame look like the player.
-
What is the issue? The HumanoidDescription does not seem to get applied, and I don’t know why.
-
What solutions have you tried so far? I tried looking at the developer hub, and searched for other topics here.
Just as additional information, the viewport frame is in a ScreenGui in ReplicatedFirst, being cloned to the player’s PlayerGui.