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 :
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.
local TweenService = game:GetService("TweenService")
local TweenInfoo = TweenInfo.new(1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out)
local Properties = {
Position = c:FindFirstChild("Head").Position
}
local tween = TweenService:Create(Pic,TweenInfoo,Properties)
wait(5)
tween:Play()
end)
end)
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.