How to make in Roblox Studio for a dummy to transform into a player? There can be a maximum of 4 people on the server, and I would like each dummy to have a player skin. Below, I am providing the script.
local Dummy = script.Parent
local Humanoid = NPC.Humanoid
game.Players.PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
local UserId = Player.UserId
script.Parent.Humanoid:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(UserId))
end)
end)