Ghost Element in a Table?

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

  1. What do you want to achieve? There seems to be a non existent Instance in my Player object.

  2. What is the issue?
    Explorer: image
    Script:


    Output: image

  3. What solutions have you tried so far? The current script is supposed to be a solution, but it isn’t working.

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!

			local UsedIndexes = {}
			for i, Tool in pairs(LocalPlayer:WaitForChild("Items"):WaitForChild(string.split(Button.Name, "Button")[1]):GetChildren()) do
				if table.find(UsedIndexes, tostring(i)) then
					print("continue")
					continue
				end
				UsedIndexes[#UsedIndexes + 1] = i
				print(i, Tool)
				print(dump(UsedIndexes))
			end

I apologise for the bad screenshots format.

1 Like

Fixed myself with an alternate solution.

1 Like