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

2 comments

0

Create a dictionary that uses the races as references to their respective body-colours.

0

Nevermind, figured it out. Thanks!