So this script actually doesn't randomize the value it just gives me the same all over again. And also how can I make it randomize with a percentage chance?
local example = {"Sung", "Hanma", "Yami"}
local randomNum = Random.new() :NextInteger(1, #example)
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
if message == "!reroll" then
print(example[randomNum])
end
end)
end)

1 comment
You used Random.new() incorrectly that's why.