local function onclick(CLICKED)
-- Define the probability thresholds
local failstartChance = 100
local beamChance = 5
-- Generate a random number between 1 and 100
local result = math.random(1, 100)
if result <= beamChance then
-- This means there's a chance to enable the Beam
core.Beam.Enabled = true
elseif result <= failstartChance then
-- This means there's a chance to enable FailStart and FailStart2
core.FailStart.Enabled = true
core.FailStart2.Enabled = true
end
end
click.MouseClick:Connect(onclick)