Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how can i change the players skin tone based on their race?

Asked by 3 years ago
local Players = game:GetService("Players")

local races = {"Ruyo", "Yuyo", "Kuyo", "Zuyo"}

Players.PlayerAdded:Connect(function(player)
        repeat
            wait()
        until
        player.Character

    local chosenRace = races[math.random(1,#races)]
    player.Character:WaitForChild("CurrentRace").Value = chosenRace
    print(player.Name.." has rolled: "..chosenRace.." race.")
end)

now this is my current script, it works just fine but i want to make it so based on the race it'll change the skin tone

0
Create a dictionary that uses the races as references to their respective body-colours. Ziffixture 6913 — 3y
0
Nevermind, figured it out. Thanks! kegirosou 17 — 3y

Answer this question