It's meant to insert a random skin into the inventory but it's only giving holiday crowns
Num = 0
function script.RemoteFunction:OnServerInvoke(id)
math.randomseed(tick())
Num = math.random(1,100)
local Skin = "nil"
if Num > 50 then
Skin = "blue"
else
if Num > 10 then
Skin = "Pirate"
else
Skin = "Holiday Crown"
end
end
local Inv = game:GetService("DataStoreService"):GetDataStore("Inventory"):GetAsync(id)
table.insert(Inv,Skin)
game:GetService("DataStoreService"):GetDataStore("Inventory"):SetAsync(id,Inv)
return Skin
end

1 comment
??? the problem is that the only skin being inserted is pirate