Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

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

Asked by
ads_bv 29
3 years ago

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

Log in to vote
1
Answered by 3 years ago

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
Ad
Log in to vote
0
Answered by 3 years ago

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
0
where do i put it? serverscriptservice? workspace? ads_bv 29 — 3y
0
Anywhere. CandyWreckEpicness 115 — 3y

Answer this question