Animated texture not working?

so i made a short animated texture (3 frames) but for some reason its not working at all
here is the script

local arrowtextures = {
		"rbxassetid://6868141962",
		"rbxassetid://6868141843",
		"rbxassetid://6868141756"
	}
	local texturetable = {}
	for i,v in pairs(itemTransparent:GetDescendants()) do
		if v.Name == "Conv" then
			local texture = Instance.new("Texture",v)
			texture.Face = "Left"
			texture.StudsPerTileU = v.Size.Y
			texture.StudsPerTileV = v.Size.Y
			texture.Texture = arrowtextures[1]
			table.insert(texturetable,texture)
		end
	end
	spawn(function()
		if #texturetable > 0 then
			repeat
				print("a")
				for i = 1,3 do
					print("b")
					for i,v in pairs(texturetable) do
						print("c")
						v.Texture = arrowtextures[i]
						wait(0.5)
					end
				end
			until placing == false
		end
	end)

ive added the prints so i can check if the loop is working at all and here is the output


the texture is just stuck in this state

Looks like it could be an issue with overwriting as you have 2 variables called i here, so you’d have to change the one relating to the in pairs

1 Like

looks like that was the issue, thanks!

1 Like