Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to use descendants array?

cant really think of title im sorry anyways, im trying to use my array "women" to display as dropdown buttons the women array is the current descendants of the users backpack heres my code

-- Dropdown
GunModSection:Create(
  "DropDown",
  "Gun Mods",
  function(current)
    local Gun = game:GetService('Players').LocalPlayer.Backpack[current]
    local m = require(Gun["Frame work"].Var.Settings)
    while wait(0.5) do
    Gun["Frame work"].Var.Ammo.Value = 696969696969696969
    m.Ammo = 696969696969696969
    }
    m.JamChance = 100000
    m.VRecoil = {0,0}
    m.HRecoil = {0,0}
    end
  end,
  {
    options = {
      women
    },
    default = "Desert Eagle"
  }
)

im currently using a UI Lib but normally it would just be formatted like an array so i dont really know whats wrong. example:

options = {
"something here",
"another thing",
"doodoo"
},

im kinda just blanking right now i dont know what to do

3 comments

0

i suppose you are an exploiter

0

What makes you think he is an exploiter? You don’t just give out random accusations.

0

@TheMinecraftSmarts his account was created today, hes using a ui lib (mainly those are for exploiting), and hes making some gun mod.

1 answer

Assuming this is a local script, I would suggest making a folder and putting all the gun mods inside it. Then simply use :GetChildren() and have a script that indexes all of the children found into ViewportFrames. You could use a scrolling frame with UIListLayout for that.

Hope this helped!

This discussion is preserved as it was. New answers, comments, and votes are closed.