New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
Log in to vote
-1

How do you use the Texture property of decals?

Asked by 3 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
3 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 — 3y
Ad

Answer this question