I have this script that loads a character onto a rig based off an id input:
local id = idhere
local dummy = workspace.Dummy
local newHumanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(id)
dummy.Humanoid:ApplyDescription(newHumanoidDescription)
I wanted to know, how could I change this so instead of making it the id of the person, it’s would get the id of the user in the game, and apply that description onto the rig. Thank you!
Whereas in the game you can load someone’s avatar onto a rig. Except I want it to just load the player in the game straight onto the rig, without typing their username.
If anyone ever finds this and wants to know, here’s the script I used, I put it in ServerScriptService:
local dummy = workspace.R15
game.Players.PlayerAdded:Connect(function(player)
local id = player.UserId
local newHumanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(id)
dummy.Humanoid:ApplyDescription(newHumanoidDescription)
end)