I am quite new to scripting an i've just tried to make a tween script. It works but it never goes to the set position, it just goes to the top left of the screen. Anyone know how to fix this?
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Shop:TweenPosition(UDim2.new({{0.384, 0},{0.268, 0}}),"In","Sine",1) end)
Your position is written wrong. Write the Udim2 with just the numbers, not the copy and pasted property from the properties area.
Here is your fixed script.
script.Parent.MouseButton1Click:Connect(function() script.Parent.Parent.Shop:TweenPosition(UDim2.new(0.384,0,0.268,0),"In","Sine",1) end)
Have fun scripting!