So I'm trying to do a loading scene where it has hints towards the game at the bottom and I have a randomizer script
local num = math.random(1,3)
local BrickEvent = game.ReplicatedStorage.Events.Gui
BrickEvent.OnClientEvent:Connect(function(plr)
if num == 1 then
print("you got Critical Hit Fact")
script.Parent.ScreenGui.Frame.HintCriticalDamage.Visible=true
elseif num == 2 then
print("you got Stamina Fact")
script.Parent.ScreenGui.Frame.HintStamina.Visible=true
elseif num == 3 then
print("you got Jump Attack Fact")
script.Parent.ScreenGui.Frame.HintJump.Visible=true
wait(12)
script.Parent.ScreenGui.Frame.HintCriticalDamage.Visible=false
script.Parent.ScreenGui.Frame.HintStamina.Visible=false
script.Parent.ScreenGui.Frame.HintJump.Visible=false
end
end)
but after it picks a random one at the beginning every time I click its the first one over and over again it doesn't ever randomize after the first click help?

3 comments
thank you ill try this
so this works but i keep getting the same one like twice in a row is there a way i can add a chance system so its really hard to get the same one
try math.randomseed(tick())