Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make a easter egg that is in a 1 in 100 chance?

i tried this script: local part = game.Workspace.Part math.random(1,100) if 100 then part.CanCollide=true part.Transparency=0.5

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

2 comments

0

where do i put it? serverscriptservice? workspace?

0

Anywhere.

This discussion is preserved as it was. New answers, comments, and votes are closed.