The title pretty much explains what my issue is but I will supply you with a video: https://gyazo.com/29981a35949a88cf20fbac8db63458a9
Also, this is my sprite sheet that I made in illustrator:
I’ve looked at various articles on the topic and have tried using their methods to make this work, so here is my current code
local imageLabel = script.Parent
-- Image properties
local CurrentRow,CurrentColumn = 0,0
local currentFrame = 1
local ImgX = 1003
local ImgY = 861
local columns = 7
local rows = 6
local Space = .2
local Frames = rows * columns
imageLabel.ImageRectSize = (Vector2.new((ImgX) - 143.3, ImgY)/rows) -- the 143.3 number is what i got from
--dividing the ImgX by colums then rounded the first decimal
while wait() do
CurrentColumn += 1
if CurrentColumn > columns then
CurrentColumn = 1
CurrentRow = CurrentRow + 1
end
if currentFrame > Frames then
CurrentRow,CurrentColumn,currentFrame = 1,1,1
end
currentFrame += 1
imageLabel.ImageRectOffset = Vector2.new(imageLabel.ImageRectSize.X * ((CurrentColumn)),imageLabel.ImageRectSize.Y *(CurrentRow))
end
If you have any possible solutions that you would like to share, it would be very much appreciated!