How to make a script to change a dummy into the Local Player's avatar

The title says my problem, Here is what I tried (Regular script inside r6 dummy)

local coolperson = script.Parent
local Humanoid = coolperson.Humanoid
local id = game:GetService("Players").LocalPlayer.UserID

while wait(10) do
	local Playerdesc = game.Players:GetHumanoidDescriptionFromUserId(id)
	Humanoid:ApplyDescription(Playerdesc)
end

Any help would be appreciated!

4 Likes

The problem is that you can’t get the LocalPlayer from a regular script, and you can’t use a localscript either unless you want the dummy to change locally instead of for everyone

1 Like

Ok, how could I fix this to make this work?

1 Like

This depends on what you are using it for. For example if you are using it for a best player in server you would do some if statements on the server and change the avatar through game.Players.BestPlayer or whatever. But if you are doing it for something else you have to do it someway else

1 Like

Are you trying to change the dummy for the localplayer only or for everyone? Aka, everyone sees the change or the local player? What’s the use for it?

1 Like
local LocalNPC = game.Workspace.Dummy.Humanoid

game.Players.PlayerAdded:Connect(function(player)
	LocalNPC:ApplyDescription(game.Players:GetHumanoidDescriptionFromUserId(player.UserId))
	wait()

	LocalNPC.BodyHeightScale = 1.4
	LocalNPC.BodyProportionScale = 1.1
	LocalNPC.BodyWidthScale = 1.2
	LocalNPC.HeadScale = 1.3

	print("Proportions applied succesfully")
end)
1 Like

Im pretty sure its NPC.Humanoid.BodyHeightScale and I dont think that is what they are asking for.

1 Like

I just wanted it for r6, I’ll look at it later since I am busy right now

2 Likes

if coolperson is a dummy then

local coolperson = script.Parent

local id = game:GetService("Players").LocalPlayer.UserID
local appearance = game.Players:GetCharacterAppearanceAsync(id)
appearance.Parent = workspace

After that change this model’s location to dummy location, give all script from dummy to this model and (if there’s not cuz I didn’t check) give it humanoid.

2 Likes

(Removed) Due to inactivity I had decided to remove this from further use.

How about the local Client? He is trying to use the Client one, where only you can able to see the character’s style.