local list2 = {
"string1",
"string2",
"string3",
"string4",
"string5"
}
local weapon = ents.Create(table.Random(list2))
weapon:SetPos(self:GetPos())
weapon:Spawn()
How would I go about making the table.random result be stored in a variable as a string format?