I'm new to scripting, but I kinda know some things, I just wanted to ask if you can actually script a script that where a new ROBLOXian has joined the server, let's say.. for ex: brown torso and brown legs and everything skin colour?
Yes, it's possible to change the color of certain parts of a character when a player joins the server, if that's what you mean. Experiment with the script below and remember to paste the code into a regular script, DO NOT insert it into a LocalScript. I also added a variable to the script, which you can change, that stores the color you want to set each part to.
-- Change "Pastel brown" to any color you'd like. color = BrickColor.new("Pastel brown") -- Don't edit anything below unless you know what you're doing. game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) wait(5) character["Body Colors"]:Destroy() items = character:GetChildren() for i = 1, #items do if(items[i]:IsA("Part")) then items[i].BrickColor = color end end end) end)
How It Works: When a player joins the game, it'll wait for the character to be added, once the character is added it'll wait 5 seconds to make sure all the assets have been loaded. Next, it'll remove Body Colors so we can edit the color of their parts however we want. Finally, it stores a variable of all the children of the character and loops through it, looking for parts to color. Once a part is found, it'll color it to the stored color in the variable, "color".
Hello, I hope this answers your question on how to make body parts change colour. So say if it was a spawnpoint and Spawnpoint was called part, then:
function onTouch(part) local human = part.Parent:findFirstChild("Humanoid") if human ~= nil then wait(2) part.Parent:findFirstChild("Head").BrickColor = BrickColor.new(21) part.Parent:findFirstChild("Torso").BrickColor = BrickColor.new(21) part.Parent:findFirstChild("Left Arm").BrickColor = BrickColor.new(21) part.Parent:findFirstChild("Right Arm").BrickColor = BrickColor.new(21) part.Parent:findFirstChild("Left Leg").BrickColor = BrickColor.new(21) part.Parent:findFirstChild("Right Leg").BrickColor = BrickColor.new(21) if part.Parent:findFirstChild("Torso"):findFirstChild("roblox") ~= nil then part.Parent:findFirstChild("Torso"):findFirstChild("roblox").Texture="" end end end script.Parent.Touched:connect(onTouch)
You can change the values (21) to whatever you like. Here is a list of colours --1 = white --208 = Light stone grey --194 = Medium stone grey --199 = Dark stone grey --26 = Black --21 = Bright red --24 = Bright yellow --226 = Cool yellow --23 = Bright blue --107 = Bright bluish green --102 = Medium blue --11 = Pastel blue --45 = Light blue --135 = Sand blue --106 = Bright orange --105 = Br. yellowish orange --141 = Earth green --28 = Dark green --37 = Bright green --119 = Br. yellowish green --29 = Medium green --151 = Sand green --38 = Dark orange --192 = Reddish brown --104 = Bright violet --9 = Light reddish violet --101 = Medium red --5 = Brick Yellow --153 = Sand red --217 = Brown --18 = Nougat --125 = Light orange
You also could possibly use an admin script Kohl's has made. "Kohl's admin script". There are commands in that, that can change your torso/body colors. Just say, "cmds" and it'll give you the features to it. There are other commands/features in it.
Closed as Not Constructive by evaera
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?