while true do
local video = script.Parent
video.Image = ("https://www.roblox.com/asset/?id=8814856839")
wait(1)
video.Image = ("https://www.roblox.com/asset/?id=8814859316")
wait(1)
end
I actually manually changed the [(1) 2 - Roblox](https://www.roblox.com/library/8814856839/2) to https://www.roblox.com/asset/?id=8814856839 I don’t know if that affects something.
local InsertService = game:GetService("InsertService")
local MarketplaceService = game:GetService("MarketplaceService")
function getImageIdFromDecal(decalId)
local assetInfo = MarketplaceService:GetProductInfo(decalId, Enum.InfoType.Asset)
assert(assetInfo.IsPublicDomain)
assert(assetInfo.AssetTypeId == Enum.AssetType.Decal.Value)
local decal = InsertService:LoadAsset(decalId):FindFirstChildWhichIsA("Decal")
return decal.Texture
end
local InsertService = game:GetService("InsertService")
local MarketplaceService = game:GetService("MarketplaceService")
function getImageIdFromDecal(decalId)
Video.Image = getImageIdFromDecal(8814856839)
local assetInfo = MarketplaceService:GetProductInfo(decalId, Enum.InfoType.Asset)
assert(assetInfo.IsPublicDomain)
assert(assetInfo.AssetTypeId == Enum.AssetType.Decal.Value)
local decal = InsertService:LoadAsset(decalId):FindFirstChildWhichIsA("Decal")
return decal.Texture
end
local InsertService = game:GetService("InsertService")
local MarketplaceService = game:GetService("MarketplaceService")
local Video = script.Parent
function getImageIdFromDecal(decalId)
Video.Image = getImageIdFromDecal(8814856839)
local assetInfo = MarketplaceService:GetProductInfo(decalId, Enum.InfoType.Asset)
assert(assetInfo.IsPublicDomain)
assert(assetInfo.AssetTypeId == Enum.AssetType.Decal.Value)
local decal = InsertService:LoadAsset(decalId):FindFirstChildWhichIsA("Decal")
return decal.Texture
end
Video.Image = getImageIdFromDecal(8814856839)
Code is like this now, but I don’t see anything happening when I start the game.
--//Variables
local Video = script.Parent
--//Loops
while true do
Video.Image = "rbxassetid://8814856822"
task.wait(1)
Video.Image = "rbxassetid://8814859302"
task.wait(1)
end