#Need help animation textures
1 messages · Page 1 of 1 (latest)
There are two options I can think of
Separately upload every frame of the gif and then apply each one in series to the face in a loop. This would be easy and high quality but would require uploading a lot of assets
Upload the gif as a sprite map and use it inside of a Texture instance, offsetting the U & V properties to flick between different areas of the texture. This only requires uploading a single asset but may suffer from being low resolution, it would also be harder to code. (also I'm not like, 100% sure this would work)
iirc this online tool can both split the gif into separate downloadable frames or assemble it into a sprite sheet, depending on what you chose
Im kinda new to roblox studio but I want to do the first one I think it would be a bit better and easier as you said. So how would I change between textures?
You'd need to write a script to loop through a table of asset ids, applying them in series
My orginal script looked like this:
local dummy = workspace:WaitForChild("Simon") --
local meshPart = dummy:WaitForChild("CorruptionFace", 5)
local decal = meshPart:FindFirstChildOfClass("Decal")
if not decal then
decal = Instance.new("Decal")
decal.Face = Enum.NormalId.Front
decal.Parent = meshPart
end
local frames = {
"rbxassetid://125861884138498",
"rbxassetid://95299832221077",
"rbxassetid://94278663298557",
"rbxassetid://102517465228653",
"rbxassetid://95505374976493",
"rbxassetid://111589296384162",
"rbxassetid://89208462983717",
"rbxassetid://127365001703401",
"rbxassetid://118433912154459",
"rbxassetid://94470349385014",
"rbxassetid://126100325743573",
"rbxassetid://92737206271527",
"rbxassetid://85415260456429",
"rbxassetid://132895490673241",
"rbxassetid://98428707444431",
"rbxassetid://105135558941824",
"rbxassetid://133105130274378",
"rbxassetid://73717924795551",
"rbxassetid://96832956626301",
"rbxassetid://131601961424117",
"rbxassetid://94567353536416",
}
local frameTime = 0.1
while true do
for _, id in ipairs(frames) do
decal.Texture = id
task.wait(frameTime)
end
end
I did use some help but it didnt work at all
wait now
looking at it I think its changing the face image
not the mesh texture
(as you can see I never code)
NOT SOLVED BLAHHH