✓ Accepted answer
Of course you can set the position simply.
Think about (.5, -210, .5, -210) as a position.
I will use this definition for brevity:
local wave = math.sin(tick() * 100)
Think of the wave contributing to a displacement -- not a position on the screen, but an amount to move. But a displacement on its own isn't a position. position + displacement --> position. So we have to separate the position and displacement in the code you provided. Then we'll just change the position to the new one.
UDim2.new(0.5, wave, 0.5, wave)
UDim2.new(0.5, 0 + wave, 0.5, 0 + wave)
UDim2.new(0.5, 0, 0.5, 0) + UDim2.new(0, wave, 0, wave)
Thus we just use instead
UDim2.new(.5, -210, .5, -210) + UDim2.new(0, wave, 0, wave)
UDim2.new(.5, -210 + wave, .5, -210 + wave)
2 comments
What does that mean? How can something be at two places at once? Specify what you mean better.
I want the ImageLabel to be shaking in the middle of the screen. It's hard to do that when you can't set the position of where the "math.sin(tick() * 100)" is.