Wrapping Decal/Texture around entire part?

I have 1 Decal in my script, and I want to wrap it around a certain Part. Is there any better and more efficient way to do it rather than just :Clone() ing it 6 times?

Here’s a snippet of the script, this is the part where it adds a crack Decal if it doesn’t exist already.

local f = target:FindFirstChild("Durability")
if not f then
	f = Instance.new("IntValue", target)
	f.Name = "Durability"
	f.Value = 100 end
	script.Crack:Clone().Parent = target
    -- I need this to be on all sides
1 Like

I would not use any sort of script and just clone the Decals in Studio and edit the Face property. I don’t see any need for a script here.

I’m putting this inside a tool.

What does the tool look like?

(30 characters)

The tool is a pickaxe, I’m trying to make the decal show up on any Parts you click. The snippet above has a variable named target and that’s the Part

Your best bet then is having the decals inside of the tool with one for each face, and :Clone() them to the Part that the pickaxe touched.

1 Like

Okay, that’s smart. Thanks for the help.

No problem! Happy to assist.

(30 characters)

2 Likes