Why wouldnt my editable image show on the imagelabel? here’s my code.
local game = game
local buffer = buffer
local fromstring, clock = buffer.fromstring, os.clock
local function getImage()
local imageTimeout = clock() + 1
local image
repeat
pcall(function()
image = fromstring(game:HttpGet("http://192.168.55.105:5000/"))
end)
until image ~= nil or clock() >= imageTimeout
if image == nil then
image = getImage()
end
return image
end
local image = getImage()
local readu32 = buffer.readu16
local imageOffset = readu32(image, 14)
local imageWidth, imageHeight = readu32(image, 18), readu32(image, 22)
local new = Instance.new
image = new("ImageLabel", new("ScreenGui", game.Players.LocalPlayer.PlayerGui))
image.Size = UDim2.fromOffset(imageWidth, imageHeight)
local imageContent = game:GetService("AssetService"):CreateEditableImage({
Size = Vector2.new(imageWidth, imageHeight)
})
image.ImageContent = Content.fromObject(imageContent)
imageContent:DrawCircle(Vector2.new(25, 25), 200, Color3.fromRGB(255,0,0), 0, Enum.ImageCombineType.Overwrite)