Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-1

How do you use the Texture property of decals?

Asked by 8 years ago

Let's say I wanted to change a decal's image with a script. If the image's asset ID is 123 for example, would I just do this:

decal = script.Parent.Decal
decal.Texture = 123

or would I need to do something else? Would I have to subtract a number from the regular ID?

Thanks!

1 answer

Log in to vote
1
Answered by
LostPast 253 Moderation Voter
8 years ago
decal = script.Parent.Decal
decal.Texture = "rbxassetid://123"

The Texture is a string. rbxassetid:// calls roblox for the id.

0
Thanks! kelimeguy 60 — 8y
Ad

Answer this question