How do I run/enable a random script or part?
Here is the randomizer script:
folderChildren = game.Lighting.ScriptsNBricks:GetChildren()
Current = game.Workspace.CurrentEvent
local getCur = Current:GetChildren
local picked = math.random(#folderChildren )
while true do
wait(5)
print(picked)
picked.Parent = workspace.Current
local script = if picked:IsA("Script") then end
if script then
script.Disabled = false
end
wait(5)
getCur:Destroy()
end
Please Help.
