How do I make a moving background for my shop GUI?

Hello! I’ve made a moving background for my loading screen and it seems to work fine. (I used another forum post for it), but now I want to add it to the shops background frame[GUI]. I copied the code I used for my loading screen but it just doesn’t work right. Any help would be appreciated.

The Code That I Used For My Loading Screen That Doesn’t Work For The Shop Background.

local TweenService = game:GetService("TweenService")

local tween = TweenService:Create(script.Parent, TweenInfo.new(10, Enum.EasingStyle.Linear), {Position = UDim2.new(0, 0, -1)})

while true do
	script.Parent.Position = UDim2.new(-1)
	tween:Play()
	tween.Completed:Wait()
end
3 Likes