Tween Not Tweening?

Hi, I have this code for a tween but whenever the first tween plays the image only goes about half way across the screen and then it stops…

local ts = game:GetService("TweenService")
local image = script.Parent.ImageLabel

local tween1 = ts:Create(image,TweenInfo.new(1, Enum.EasingStyle.Linear), {Position=UDim2.new({0.9, 0},{-0.023, 0})})
local tween2 = ts:Create(image,TweenInfo.new(1, Enum.EasingStyle.Linear), {Position=UDim2.new({-0.5, 0},{-0.023, 0})})

game.ReplicatedStorage.TrapPlatforms.AnoyyingEvent.OnClientEvent:Connect(function(player)
	script.Parent.Parent.Enabled = true
	wait(1)
	tween1:Play()
	wait(3)
	tween2:Play()
	wait(3)
	tween1:Play()
end)

In UDim coordinates are not entered as in Explorer. Remove the curly brackets {} or use UDim2.fromScale(0.9, -0.023) to set the value only for Scale.

1 Like

Thank you so much, now I know!