i tried this script: local part = game.Workspace.Part math.random(1,100) if 100 then part.CanCollide=true part.Transparency=0.5
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