decals aren’t showing up on cloned items. They show up in the original item.
local function spawnitem(itemname)
Namenum += 1
local name = itemname..Namenum
local CoinModel = game.ReplicatedStorage.TemplateCoin:Clone()
CoinModel.Name = name
CoinModel.Parent = game.Workspace.CoinsInWorld
local image = ItemInfo.ItemInformation[itemname].Image
--the image is somthing like this: "rbxassetid://1234567890"
local BColor = ItemInfo.ItemInformation[itemname].BColor
CoinModel.DecalPart.Decal.Texture = image
CoinModel.DecalPart.Decal2.Texture = image
CoinModel.PrimaryPart.BrickColor = BColor
movetoken(CoinModel)
end
The BColor (Brick Color) part works, so you know it’s not a referencing issue, but the decal doesn’t. What’s going on?
I figured it out. The problem was caused by the decal being parented to a child part of the item, and not the item itself. The child wasn’t being tweened, along with the original item, because I was tweening position instead of using the Pivot API. The decal was never the issue in the first place.