Error with tweening ui

So, I am trying to make a ui that tweens to a position but it gives me an error. Here’s the code: workspace:WaitForChild("Shop"):WaitForChild("ShopOpen").Touched:Connect(function(hit) local PLayer = script.Parent.Parent.Parent.Parent if hit.Parent.Name == PLayer.Name then local shop = script.Parent shop:TweenPosition(, 0, 0.5, 0) "Out", "Elastic", 4, true )

And here is the error: attempt to call a UDim2 value. Any thing that can fix?

I think it’s because you don’t have a comma between the, 0, 0.5, 0) and the “Out”.

1 Like