Unsure on why my local script isn't working

I’m confused on why my local script isn’t working.

The script is intended to get the shirt, pants, and body colors from the player’s character connected to the server, then clone it and get the id’s from the shirt/pants to the humanoid’s shirt and pants.

The local script is located in starter player scripts.

local PlayersService = game:GetService('Players')

PlayersService.PlayerAdded:Connect(function(Player)
	Player.CharacterAdded:Connect(function(Character)
		-- INTRODUCTION --
		local IntroductionDummy = game.Workspace:WaitForChild('IntroductionDummy')
		
		local CharacterBodyColors = Character:FindFirstChild('Body Colors'):Clone()
			CharacterBodyColors.Parent = IntroductionDummy
		
		for i, v in pairs(Character:GetDescendants()) do
			if v:IsA('Shirt') then
				IntroductionDummy:WaitForChild('Shirt').ShirtTemplate = Character:FindFirstChild('Shirt').ShirtTemplate.Value
			end
			if v:IsA('Pants') then
				IntroductionDummy:WaitForChild('Pants').PantsTemplate = Character:FindFirstChild('Pants').PantsTemplate.Value
			end
			if v:IsA('BodyColors') then
				local BodyColors = Character:WaitForChild('Body Colors'):Clone()
				BodyColors.Parent = IntroductionDummy
			end
		end
		
	end)
end)
1 Like

So because its a local script and is in starter player u wouldn’t need to use playeradded u can just do playerservice.localplayer. it would also be much easier if u put it in starter character as it will be in the players character and u just have to do script.Parent to get access to the players character

I’m changing properties to a humanoid locally in the server, not my own character.
image

no this is my 4th time commenting lol

ok but try just using PlayerService.LocalPlayer and not PlayerAdded as it will just pickup new players and not itself

PlayersService.LocalPlayer:Connect(function(Player)
	Player.LocalPlayer:Connect(function(Character)

Like this? It won’t work

no since the script will be created in a player who already joined and will just pickup players who join after that

I see what you mean, let me try that.