I made a fully working datastored character creator and am wondering if something like this would work to load the player’s custom character into the game:
local data = game:GetService("DataStoreService")
local skinColor = data:GetDataStore("SkinColor")
if skinColor == 1 then
script.Parent:FindFirstChild("Head").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("Torso").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperLeg").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperLeg").Color = Color3.fromRGB(108, 71, 53)
elseif skinColor == 2 then
script.Parent:FindFirstChild("Head").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("Torso").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperLeg").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperLeg").Color = Color3.fromRGB(108, 71, 53)
elseif skinColor == 3 then
script.Parent:FindFirstChild("Head").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("Torso").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperLeg").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperLeg").Color = Color3.fromRGB(108, 71, 53)
elseif skinColor == 4 then
script.Parent:FindFirstChild("Head").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("Torso").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperArm").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("LeftUpperLeg").Color = Color3.fromRGB(108, 71, 53)
script.Parent:FindFirstChild("RightUpperLeg").Color = Color3.fromRGB(108, 71, 53)
end
im not very advanced at scripting so please point out any errors