Okay so in my game when you die a bag spawns where you died and it gets cloned to workspace as well as a folder getting created inside repl storage.
The folder and the bags name are a "Player.Name .. " " .. Deaths.Value" so its your name then a space then the amount of deaths you have, this way I can keep track of certain bags so like death #56's bag.
I have a billboard gui that is supposed to only appear over objects that have a hitbox and are in the table but I am trying to get any death bag in workspace into the table basically.
But since your death bag name depends on how many deaths youve had I tried using a NumberSequence and it isnt working.
Heres the script, if you have any questions please ask, I know its kinda hard to understand, its because its also hard to explain.
local ItemTable = {"Campfire"} local CraftingItemTable = {"Campfire"} local LootingTable = {} for i, Players in pairs(game.Players:GetChildren()) do local DeathRange = NumberRange.new(0, 5000) ItemTable[2] = Players.Name .. " " .. DeathRange LootingTable[1] = Players.Name .. " " .. DeathRange end
Thank you for your time.