SS = game:GetService("ServerStorage")
WeaponList = SS:WaitForChild("Weapons")
Weapons = WeaponList:GetChildren()
local MaxWeapons
for i = 1, #Weapons do
MaxWeapons = MaxWeapons + 1
end
local PickedItem = math.random(1, MaxWeapons)
print("Chosen Item: " .. PickedItem)
Basically, I’m trying to create a system that chooses a random item from a folder, that then places the chosen item into the map.
I’ve got the randomizer done. I just don’t know how to select the chosen object from the folder to clone into the workspace. A bit of help would be much appreciated