I am trying to create a moving tile background. I managed to get it to work well, but it looks better when rotated.
Here is the background:
The script I am using to move it only works when the rotation is set to 0, but my image label is rotated at 35 degrees.
The script I am using:
local imageLabel = script.Parent
local speed = 0.01
local initialPosition = imageLabel.Position.X.Scale
local rs = game:GetService("RunService")
rs.RenderStepped:Connect(function()
imageLabel.Position = UDim2.new((imageLabel.Position.X.Scale + speed * 0.01) % 1, 0, imageLabel.Position.Y.Scale, 0)
end)
It looks like it is moving well until it reaches the edge.
I tried rotating the image itself instead of the ImageLabel, but that just resulted in something that looks like this:
If anyone can help me it would be appreciated since I have been trying to do this for over 2 hours.

