How do I make it so the piggy skin is randomized in a folder,
function module.DressPiggy(piggy)
local character = game.ServerStorage.Piggy:Clone()
character.Name = piggy.Name
piggy.Character = character
character.Parent = workspace
end
For example like this before,
function module.ChoosePiggy(players)
local RandomObj = Random.new()
local chosenPiggy = players[RandomObj:NextInteger(1,#players)]
return chosenPiggy
My main part in my example is the local chosenPiggy = players[randomobj:NextInteger(1#players)]
Would it just be local dressPiggy = game.ServerStorage.#PiggySkins[RandomObj:NextInteger(1,#PiggySkins)]
Please correct me this is essential.

3 comments
(Sorry for the bad edit, but idk why it's not showing correctly for me the code blocks)
Lol
My bad, I'll fix it.