so i’m trying to make a character talk with textures, and every time the texture changes its grey for .1 seconds.
how do I load textures in before hand so they don’t have to load in while its changing?
so i’m trying to make a character talk with textures, and every time the texture changes its grey for .1 seconds.
how do I load textures in before hand so they don’t have to load in while its changing?
The service ContentProvider is your friend for this task. More precisely the method PreloadAsync. You can preload your texture like this:
local allTexturesToPreload = {"rbxassetid://738217432"}
game:GetService("ContentProvider"):PreloadAsync(allTexturesToPreload)
I personally have a little difficulty understanding how to use it correctly because it preloads assets already present, so you might be better off passing your character into the table instead of the texture ID to preload.
Hope this have helped you a little, if you have any questions, don’t hesitate to ask to me!