Can you do this?
local function Search(Location, Value) if Location[Value] then local status = “found” return(status) end end local SearchStatus = Search(workspace, Part) print(SearchStatus)
Yes, you can do this. Very useful for classifying objects, too:
function isItLimeGreen(thing) if thing.BrickColor = BrickColor.new("Lime green") then return "True" else return "False" end end local object = game.Workspace:FindFirstChild("Test") print( isItLimeGreen(object) )