Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --how this script work put target in "You target username" then after finishing that you execute
- ---if script was successful is will print the classic pants and classic shirt the target wearing even they didn't wear it what they didn't wear it mean? Is mean like for example you target wearing "hello guy" shirt but the game changed the Clothing to "hey guy" shirt and is will copy Id of "hey guy" instead of "hello guy"
- ---to see what where does id of clothing target showed once script successful is typing in chat "/console" then you found it if id not founded scroll down until you see it
- -- Function to find a player by a partial username
- local function findPlayer(partialName)
- local players = game.Players:GetPlayers()
- for _, player in ipairs(players) do
- if player.Name:lower():match(partialName:lower()) then
- return player
- end
- end
- return nil
- end
- -- Function to get the shirt and pants IDs of a player's character
- local function getPlayerClothingIds(player)
- local character = player.Character
- if character then
- local shirt = character:FindFirstChildOfClass("Shirt")
- local pants = character:FindFirstChildOfClass("Pants")
- if shirt and pants then
- return shirt.ShirtTemplate, pants.PantsTemplate
- end
- end
- return nil, nil
- end
- -- Main script
- local targetPlayerName = "YourTargetName" -- Replace this with the target username or partial name
- local targetPlayer = findPlayer(targetPlayerName)
- if targetPlayer then
- local shirtId, pantsId = getPlayerClothingIds(targetPlayer)
- if shirtId and pantsId then
- print("Shirt ID:", shirtId)
- print("Pants ID:", pantsId)
- else
- print("Could not find shirt and pants IDs for", targetPlayer.Name)
- end
- else
- print("Player not found with name containing:", targetPlayerName)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement