Table.find Roblox. Hiwi!! Thank you for reading, can someone tell me a good way to access this? (All code its just an Example typed directly in the post) I And whenever the player picks up an item it fires a remote event with the item name that they picked up. But I'm not sure how to use table.find
So basically, I'm trying to see if a player has a certain item. The player's inventory items are stored in a table.
local teams = {"a", "b", "c"} while wait(0.5) do if table.find(teams, game.Players.LocalPlayer.Team.Name) then print("Player has team matching") end end.
And whenever the player picks up an item it fires a remote event with the item name that they picked up. But I'm not sure how to use table.find
Within the given array-like table haystack, find the first occurrence of value needle, starting from index init or the beginning if not provided.
Hiwi!! Thank you for reading, can someone tell me a good way to access this? (All code its just an Example typed directly in the post) I
JavaScript is disabled. In order to continue, we need to verify that you're not a robot. This requires JavaScript. Enable JavaScript and then reload the page.
Okay so I'm in the process of creating a custom dev console, and part of it is a table that has a list of allowed commands. However the player has to input
way to see if a specific value exists within a table/array. Roblox has added table.find(t, v) which returns the index of v in t
Hello everyone. Well, I was trying to find a table in a table to perform the thing. so, I just tried with table with like {Object, String},
Anyone got any ideas? if not table.find(parts, tostring("HumanoidRootPart")) then if script.Parent.Health.Value <= script.Parent