I want to extract an ID from mesh/texture URl like (rbxassetid://1234567890 to 1234567890) or
(http://www.roblox.com/asset/?id=1234567890 to 1234567890)
The problem is that my smooth brain can figure out how to do it, and I’ve tried to find a solution but only found a solution of “extract a number out of a string” but not “extract a string out of a number”.
Here is a script for it. This script is made to find a mesh or texture id that matches the filtertable
and show where it is!
local fiteridtable = {115337883,4107760344,722755763,560079780,560077355}
game.Loaded:Wait()
function point(obj) -- point obj location using billboard gui
if obj and obj:IsA("BasePart") then
local pointer = script.Pointer:Clone()
pointer.Parent = obj
pointer.Enabled = true
end
end
function checkmatch(obj,id)
for _,v in pairs(fiteridtable) do
if v == string.split() then -- idk how to do this
-- check match then print full name and point to obj using billboard gui
print(obj:GetFullName())
point(obj)
end
end
end
for _,v in ipairs(workspace:GetDescendants()) do
if v then
if v:IsA("MeshPart") or v:IsA("SpecialMesh") then
checkmatch(v, v.MeshId)
elseif v:IsA("Decal") then
checkmatch(v, v.Texture)
end
end
end
Any help would be appreciated!