i tried this script: local part = game.Workspace.Part math.random(1,100) if 100 then part.CanCollide=true part.Transparency=0.5
COMMUNITY QUESTION
How do i make a easter egg that is in a 1 in 100 chance?
2 answers
Just use a new variable with the math.random inside it
local part = game.Workspace.Part
local number = math.random(1,100)
if number == 100 then
part.Transparency=0.5
end
Just use a math.random thing.
local part = game.Workspace.Part
local chance = math.random(1,100)
if chance == 100 then
part.CanCollide = true
part.Transparency = 0.5
end
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
where do i put it? serverscriptservice? workspace?
Anywhere.