So I'm trying to play a looping loading animation with 12 frames, and uh, this does nothing. It's inside the image label. I also tried it inside the frame.
'''lua
while true do
for i = 1,12 do
local pos = 1
script.Parent:TweenPosition(UDim2.new(1,0,pos,0),"Out", "Sine", 0.01)
pos += 1
end
script.Parent:TweenPosition(UDim2.new(1,0,1,0),"Out", "Sine", 0.01)
end'''