Why isn't my part getting a decal pasted onto it?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want my script to paste a decal onto my part. (Aura2)
  2. What is the issue? Include screenshots / videos if possible!
    Aura2 isn’t getting auradecal Y/X onto it but aura is.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried to change up my code.
local aura = Instance.new("Part") -- Creates part
local auradecalY = Instance.new("Decal") -- Creates an image holder
local auradecalX = Instance.new("Decal") -- Creates an image holder
auradecalY.Texture = ("http://www.roblox.com/asset/?id=3733610821") -- Gives an image to holder
auradecalX.Texture = ("http://www.roblox.com/asset/?id=3733610821") -- Gives an image to holder

aura.Name = ("Aura") -- Renames aura
aura.Transparency = 1 -- Makes part invisable
aura.Anchored = true -- Make sure it doesnt fall into the void
aura.CanCollide = false -- Make sure you can move through it
aura.Size = Vector3.new(7, 8, 0.2) -- Changes the size of part
aura.Parent = workspace -- Adds it into workspace

local Aura2 = game.Workspace.Aura:Clone() -- Clones part
Aura2.Parent = workspace
Aura2.Rotation = Vector3.new(0, -90, 0)

function auradecal(Parent) -- Stops half the work of giving the image a parent and face
auradecalX.Parent = Parent
auradecalY.Parent = Parent
auradecalX.Face = Enum.NormalId.Front
auradecalY.Face = Enum.NormalId.Back
end

auradecal(Aura2) -- Adds parent to one of the parts
auradecal(aura) -- Adds parent to one of the parts

``

Spritehcfgh-0001
Also this might explain more than my words, and sorry if my code is sloppy its my 2nd day of learning coding.

You aren’t cloning the decals; when you do this:

It’ll just re-parent the existing decals


You could also just do this:

local Aura2 = aura:Clone()
1 Like

In the area where you provided the IDs, you inserted them in the wrong format. Formats for decals, sounds and for ParticleEmitters are as rbxassetid based if it is already an existing asset.

local aura = Instance.new("Part", workspace)
local auradecalY = Instance.new("Decal", aura)
local auradecalX = Instance.new("Decal", aura)
auradecalY.Texture = "rbxassetid://3733610821"
auradecalX.Texture = "rbxassetid://3733610821"

aura.Name = ("Aura")
aura.Transparency = 1
aura.Anchored = true
aura.CanCollide = false
aura.Size = Vector3.new(7, 8, 0.2)

local Aura2 = aura:Clone()
Aura2.Orientation = Vector3.new(0, -90, 0)

local function auradecal(Parent) -- Stops half the work of giving the image a parent and face
    auradecalX.Parent = Parent
    auradecalY.Parent = Parent
    auradecalX.Face = Enum.NormalId.Front
    auradecalY.Face = Enum.NormalId.Back
end

auradecal(Aura2) -- Adds parent to one of the parts
auradecal(aura) -- Adds parent to one of the parts

This format actually works ("#") try it out.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.