I'm trying to move an Image Label every frame, and I'm not sure how I should go about adding different UDim2 values. What I mean, is I want the value of the Image Labels UDim2 value to change every frame, what I've tried is something like this;

local RunService = game:GetService("RunService")

local function update()
	script.Parent.Frame.ImageLabel.Position = UDim2 + UDim2.new(0.001,0,0.001,0)
end

RunService.RenderStepped:Connect(update)

Any help?

5 comments

0

tween position possibly

0

gui:TweenPosition(pos,EasingDirection,EasingStyle,time,override)

0

The problem with that is the direction of which the GUI is moving is going to be dynamic, not static. Otherwise I would have tweened it.

0

script.Parent.Frame.ImageLabel.Position = script.Parent.Frame.ImageLabel.Position + UDim2.new(0.001,0,0.001,0)

0

Thanks @INOOBE_YT