Moving an ImageLabel

Hello, I would like to know, how do you make a picture move with the player?
Well, here’s an example:
The player is at the beginning, so the image is at the beginning like the player :

When the player moves forward, then the image moves forward :

until the end

Like Tower Of Hell

1 Like

You can try using the Linear function, which is a command inside the service TweenService (or something like that).

Then, you can calculate how many feets/meters the player is going, and update the label in a smooth way.

it’s fuzzy enough to script :confused:

You could use a viewport frame for the player, but otherwise you need to know math to script this using linear function. If your a beginner, I don’t know what to tell you.

A viewportframe is not needed here, an ImageLabel would work fine.

A viewport frame would be more accurate for avatar purposes.

Yes I agree, but the title specifically says they want to use a ImageLabel.

Maybe, the owner will be open minded about this.

I have this problem :

23:35:06.376 - TweenService:Create property named ‘Position’ cannot be tweened due to type mismatch (property is a ‘UDim2’, but given type is ‘Vector3’)

		local TweenService = game:GetService("TweenService")
		local TweenInfoo =,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
		local Properties = {
			Position = c:FindFirstChild("Head").Position

		local tween = TweenService:Create(Pic,TweenInfoo,Properties)
1 Like

You are using Vector3, which is doesn’t want. It wants UDim2, so you would need to convert Head.Position to UDim2.
Using .Position will automatically use Vector3, I recommend using Head.CFrame instead of Head.Position

I assume horizontal movement will be On the X axes, if its not then you will need to use some other axes that suits your layout.

Here is the formula you need to use relativePlayerXPos / LevelEndXPos relativePlayerXPos is the X position of the player relative to your level’s Start X Position. And LevelEndXPos is the position relative to the level’s Start X Position where the end of the level is.

Then you would set the X Scale to the result

1 Like

Bar.rbxl (25.5 KB)

here i made a example for you!

1 Like