Lets say you have the following instances/objects:
[1] Eat breakfast [2] Eat lunch [3] Each dinner
Is there a way or a method to get the instance/object [2] Eat lunch by just using part of its name like "[2]?"
So for instance, is there a method that will search through those instances/objects and find the instance/object with the [2] in its name and give it to you so you can manipulate it further?
I have been trying to find such a method but I'm not even sure if it exists on ROBLOX?
Something like game.Workspace:FindFirstChild("[2]") which would give you [2] Eat lunch.
Please give me a direction, anything so I can move in the right direction.
local t = {EatBreakfast, Dinner, Lunch} local found = table.find(t,1) -- EatBreakfast workspace[found] -- The instance!