How can I make a script that gets a random child in a folder and changes its transparency

How can I make a script that gets a random child in a folder and changes its transparency

You can achieve that using Instance | Roblox Creator Documentation and math.random.

local Folder = workspace.Folder
local RandomChild = Folder:GetChildren()[math.random(1,#Folder:GetChildren())]
RandomChild.Transparency = 0  -- Set this to the transparency you want
1 Like

Thank you I really appreciate it

1 Like