I was attempting to create a loading circle using a sprite sheet with ImageOffset, and although it worked in Studio when I changed the offset manually, once I get into actually testing the game, the image does not appear at all.
This is the sprite sheet that I am using:
Example of what the first sprite looks like:

What shows whenever I play the game in Studio:

Here is the code that I am using:
local function getSpritePosition(spriteNumber)
local row = math.floor((spriteNumber - 1))
local position = Vector2.new(row*35, 40)
return position
end
spawn(function()
while loading do
UI.LoadingScreen.ImageLabel.ImageRectOffset = getSpritePosition(i%29 + 1)
i = i + 1
wait(0.1)
end
end)
-- Credit to whoever posted this on DevForum
I am wondering that this issue could be caused because I am using scale for the size of the ImageLabel, and the image is using offset measurements?