local Egg = game.Workspace.Eggs.TestEgg.ClickyBrick.Thebrick
Egg.ClickDetector.MouseClick:connect(function()
print ("click from egg was detected") --Prints a message when the part is clicked.
local EggValue = math.random(1,4) --Gets a random number for the pet which can be hatched. As EggValue.
print ("EggValue") --Prints the number got
if EggValue == 1 then
print ("You have pet number one.")
end
end)
How do I make 1, 2, and 3 more likely to appear, and 4 rarer?

1 comment
If ROBLOX hasn't 100% depreciated it, then I wouldn't recommend using it. This is because the new Random could have bugs, which will mean it won't work right.