I have tried renaming the parts, but it broke the welds (i am making a dummy with randomly selected parts, welded via script)
I have also tried adding another texture on top but it won’t work either
Not quite sure what you’re trying to pull off…
Are you attempting to replace standard Roblox textures (e.g. Grass, Cobblestone, Glass) with your own for each selected part?
An image example might help me understand better too.
i am attempting to change the colors of individual body parts, such as lower arms. but i cannot due to composite textures
Can I see your script and the humanoid rig?
-- the body parts
local head = {game.ReplicatedStorage.Folder.head.Head1, game.ReplicatedStorage.Folder.head.Head2, game.ReplicatedStorage.Folder.head.Head3}
local body = {game.ReplicatedStorage.Folder.body.UpperTorso1, game.ReplicatedStorage.Folder.body.UpperTorso2, game.ReplicatedStorage.Folder.body.UpperTorso3}
local lefta = {game.ReplicatedStorage.Folder.la.LeftLowerArm1, game.ReplicatedStorage.Folder.la.LeftLowerArm2, game.ReplicatedStorage.Folder.la.LeftLowerArm3}
local righta = {game.ReplicatedStorage.Folder.ra.RightLowerArm1, game.ReplicatedStorage.Folder.ra.RightLowerArm2, game.ReplicatedStorage.Folder.ra.RightLowerArm3}
local leftl = {game.ReplicatedStorage.Folder.lL.LeftLowerLeg1, game.ReplicatedStorage.Folder.lL.LeftLowerLeg2,game.ReplicatedStorage.Folder.lL.LeftLowerLeg3}
local rightl = {game.ReplicatedStorage.Folder.rL.RightLowerLeg1, game.ReplicatedStorage.Folder.rL.RightLowerLeg2, game.ReplicatedStorage.Folder.rL.RightLowerLeg3}
--loading the body parts
local bh = head[h]
local bb = body[b]
local bla = lefta[la]
local bra = righta[ra]
local bll = leftl[ll]
local brl = rightl[rl]
--renaming
bh.Name = "Head"
bb.Name = "UpperTorso"
bla.Name = "LeftLowerArm"
bra.Name = "RightLowerArm"
bll.Name = "LeftLowerLeg"
brl.Name = "RightLowerLeg"
-- getting the part name
local nh = bh.Name
local nb = bb.Name
local nla = bla.Name
local nra = bra.Name
local nll= bll.Name
local nrl = brl.Name
--functions
local function movehead()
local original = bh
local copy = original:Clone()
copy.Parent = game.Workspace.tesr
end
local function movebody()
local original = bb
local copy = original:Clone()
copy.Parent = game.Workspace.tesr
end
local function movela()
local original = bla
local copy = original:Clone()
copy.Parent = game.Workspace.tesr
end
local function movera()
local original = bra
local copy = original:Clone()
copy.Parent = game.Workspace.tesr
end
local function movell()
local original = bll
local copy = original:Clone()
copy.Parent = game.Workspace.tesr
end
local function moverl()
local original = brl
local copy = original:Clone()
copy.Parent = game.Workspace.tesr
end
local function weld()
local torso = game.Workspace.tesr:WaitForChild("UpperTorso")
local head = game.Workspace.tesr:WaitForChild("Head")
local lla = game.Workspace.tesr:WaitForChild("LeftLowerArm")
local lra = game.Workspace.tesr:WaitForChild("RightLowerArm")
local lll = game.Workspace.tesr:WaitForChild("LeftLowerLeg")
local lrl = game.Workspace.tesr:WaitForChild("RightLowerLeg")
head.Neck.Part0 = torso
game.Workspace.tesr.LeftUpperArm.LeftShoulder.Part0 = torso
game.Workspace.tesr.RightUpperArm.RightShoulder.Part0 = torso
game.Workspace.tesr.LeftFoot.LeftAnkle.Part0 = lll
game.Workspace.tesr.RightFoot.RightAnkle.Part0 = lrl
game.Workspace.tesr.LeftHand.LeftWrist.Part0 = lla
game.Workspace.tesr.RightHand.RightWrist.Part0 = lra
game.Workspace.tesr.LeftUpperArm.LeftShoulder.C0 = CFrame.new(-1.5,0,0)
game.Workspace.tesr.RightUpperArm.RightShoulder.C0 = CFrame.new(1.5,0,0)
game.Workspace.tesr.LeftFoot.LeftAnkle.C0 = CFrame.new(0,-.6,0)
game.Workspace.tesr.RightFoot.RightAnkle.C0 = CFrame.new(0,-.6,0)
game.Workspace.tesr.LeftHand.LeftWrist.C0 = CFrame.new(0,-.6,0)
game.Workspace.tesr.RightHand.RightWrist.C0 = CFrame.new(0,-.6,0)
end
--moving
movehead()
movebody()
movela()
movera()
movell()
moverl()
weld()
this is the rig before running
this is it afterwards. the only problem is not the script. but the fact that roblox auto applies the color of the upper parts to the rest
the rig can easily work as a normal one, but the lower parts of limbs that are supposed to be another color are grey
Instead of changing the parts individual colors, change the BodyColor
properties in the humanoid. They will automatically apply to the limbs.
I might’ve misunderstood what you said, but in case I didnt, there are several parts of different colors. I need all of them to be their own sepparate color
To change the color of each individual part, I suggest you use a standard block rig, and weld your own custom parts to each part in the rig.
You’ll have to position, rotate, and weld the part within the script, so it should look something like this:
local part = game:GetService("ReplicatedStorage").Part
local rig = game.Workspace.Rig
local function Weld(part0,part1)
local weld = instance.new("Weld")
weld.Parent = part0
weld.Part0 = part0
weld.Part1 = part1
end)
local clone = part:Clone()
clone.BrickColor3 = ('whatever color you want')
clone.Parent = rig
clone.Position = rig.Head.Position
clone.Rotation = rig.Head.Rotation
Weld(clone,rig.Head)
This is just an example script, but you could also use meshparts
, obviously.
Remember to keep the parts unanchored and to make the rig transparent!!!