Hello devs
I’m trying to add a repeating animated pattern to my background, but I can’t make it work seamlessly and smoothly.
I’m using this image as a repeating tile
it is 1024x1024 and one half is white
this is the script I’m using
while true do
pattern.Position = UDim2.new(.5, 0, .5, 0)
local patternTween = createTween(pattern, {Position = UDim2.new(1, 0, 0.5, 0)}, 10, "Linear", "Out", 0, false, 0)
patternTween:Play()
patternTween.Completed:Wait()
end
this is how it looks
you can see that at some point, the pattern stutters
these are the pattern’s properties
EDIT1: replaced moves weirdly bu stutters