Hey yall! I’m working on a game currently and I want to make players spawn with my custom clothing, but I don’t know how to start the script. can someone help me get started ?
Thank you!
note that I’m still new to scripting
Hey yall! I’m working on a game currently and I want to make players spawn with my custom clothing, but I don’t know how to start the script. can someone help me get started ?
Thank you!
note that I’m still new to scripting
You could try this script (not LocalScript!)
local Players = game:GetService("Players")
local function onCharacterAdded(character)
local player = Players:GetPlayerFromCharacter(character)
local humanoid = player and (player.Character and player.Character:FindFirstChildOfClass("Humanoid"))
if humanoid then
local descriptionClone = humanoid:GetAppliedDescription()
descriptionClone.GraphicTShirt = --Put your ID
descriptionClone.Pants = --Put your ID
descriptionClone.Shirt = --Put your ID
wait(0.2)
humanoid:ApplyDescription(descriptionClone)
else
warn("Humanoid not found") --This is optional
end
end
Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Connect(onCharacterAdded)
end)
It worked, thank you very much!