JustPaste
HomeCategoriesAboutDonateContactTerms of UsePrivacy Policy
JustPaste

Free online notepad — write and share instantly

Navigate

  • Home
  • Timeline
  • Categories

Info

  • About
  • Donate
  • Contact

Legal

  • Terms of Use
  • Privacy Policy

© 2026 JustPaste.app. All rights reserved.

Made with ♥ by JustPaste

Untitled Page | JustPaste.app
2 months ago0 views
👨‍💻Programming
local Selection = game:GetService("Selection")
local MS = game:GetService("MarketplaceService")

-- Mengecek apakah kamu sudah memilih Folder
local selectedObjects = Selection:Get()
if #selectedObjects == 0 then
	warn("Pilih Folder tujuan di Explorer dulu ya!")
	return
end
local targetParent = selectedObjects[1]

local count = 0
for _, item in ipairs(workspace:GetChildren()) do
	if item:IsA("Decal") or item:IsA("Texture") then
		item.Parent = targetParent
		count = count + 1

		local id = string.match(item.Texture, "%d+")
		if id then
			task.spawn(function()
				local ok, info = pcall(function() return MS:GetProductInfo(tonumber(id)) end)
				if ok and info and info.Name then 
					local cleanName = string.gsub(info.Name, "^Images/", "")
					item.Name = cleanName 
				end
			end)
		end
	end
end
print("Selesai! " .. count .. " gambar berhasil dipindah ke " .. targetParent.Name .. " dan di-rename.")
← Back to timeline