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( UDim2.new(0.5, 0, 0.5, 0) "Out", "Elastic", 4, true )
And here is the error: attempt to call a UDim2 value. Any thing that can fix?