I have a while loop that is supposed to play a frame-by-frame animation, but the loop doesn’t work for some reason. Can you help me?
local ContentProvider = game:GetService("ContentProvider")
ContentProvider:PreloadAsync(workspace.GIF:GetChildren())
local count = script.Frame
local timeout = script.Delay
while true do
workspace.Screen.Decal.Texture = workspace.GIF:FindFirstChild("frame_"..count.Value).Texture
if count.Value == 31 then count.Value = 0 end
wait(timeout.Value)
end