The random picker script is not working

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    The random picker script

  2. What is the issue? Include screenshots / videos if possible!
    This script worked on my friend’s game but my game doesn’t


  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I tried putting the task.wait() and it doesn’t work
local Choosen = game.Workspace[math.random(1, #game.Workspace:GetChildren())]

There is nothing called 3 in the workspace. You probably meant this:

local children = workspace:GetChildren()

local randomNumber = math.random(1, #children)
local chosen = children[randomNumber]
1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.