Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR LUA

how to find out if a value is in the table roblox

for i, player in pairs(currentWinners) do
   if player == hit.Parent:GetPlayerFromCharacter():GetPlayerByUserId() then
		break
   else
		table.insert(currentWinners,hit.Parent:GetPlayerFromCharacter():GetPlayerByUserId())
   end
end
Source by create.roblox.com #
 
PREVIOUS NEXT
Tagged: #find #table #roblox
ADD COMMENT
Topic
Name
3+2 =