I want to change the clothes ID of players who enter my game, they can choose the clothes they want, but I’m not getting.
Yes, my game is published !
-- Character Customization --
local players = game:GetService("Players")
local player = game.Players.LocalPlayer
local function STARTER(plr)
local character = plr.Character or plr.CharacterAdded:wait()
local Pants = character:WaitForChild("Pants")
local Shirt = character:WaitForChild("Shirt")
--Shirt Inicialization
local ListShirt = {"rbxassetid://1402902415"}
Shirt.ShirtTemplate = ListShirt[1]
--Pants Inicialization
local ListPants = {"rbxassetid://1402900791"}
Pants.PantsTemplate = ListPants[1]
end
players.PlayerAdded:Connect(STARTER)
TS: If i put 'print(“something”) ’ behind local shirt, it’s work, but if is after, it’s don’t work, so i think local shirt is wrong

3 comments
You cannot use game.Players.LocalPlayer in a server script, instead use .PlayerAdded
I think there is no way to send an image here, but it gave an 'Infinite yield possible in the' Workspace.Fullmando: WaitForChild ("Pants") '
First of all not all players wear shirts/pants. Second of all the shirt/pants don't have to be named "Shirt" or "Pants", hence why your WaitForChild never finds either