How do you change skin by using script? i want to make it change skin on torso and leg only, can anybody help me pls?
Skin as in the color of the skin? If that’s the case, you can change the BodyColors.
1 Like
You want the color of the skin changes when player join or when they interact with some sort of object or UI?
1 Like
i want the script change player torso and leg color like picture
i want it automatic change color skin when player joined game
You can use PlayerAdded event to make it executes for every player has joined the game.
Also you can make a table contains strings of the Character’s body parts name for looping through every parts of the Character and we can use table.find to make sure they match the table’s strings.
After that, we can change the color of the parts.
Something like this: (Put this in ServerScriptService)
local ListToChange = {"Torso", "Right Leg", "Left Leg"}
game:GetService("Players").PlayerAdded:Connect(function(Player)
Player.CharacterAdded:Connect(function(Character)
repeat wait() until Character ~= nil
for i,v in pairs(Character:GetChildren()) do
if table.find(ListToChange, v.Name) then
v.Color = Color3.fromRGB(0, 0, 0) -- Change this to your desired color.
end
end
end)
end)
2 Likes