local CaptureService = game:GetService("CaptureService")
local AssetService = game:GetService("AssetService")
local CS; CaptureService:CaptureScreenshot(function(contentID)
local success, Out = pcall(function()
return AssetService:CreateEditableImageAsync(Content.fromUri(CS))
end)
print("Screenshot captured with contentID:", CS) -- Screenshot captured with contentID: rbxtemp://32
print(success,Out) -- false AssetService:CreateEditableImageAsync cannot currently create editable image from temporary texture id.
end)
Something like this?
local var = "rbxtemp://contenthere"
local newStr = string.gsub(var, "rbxtemp://", "")
print(newStr)
No, no I meant like getting an Editable Image from a rbxtemp file