Hello, I am learning how to tween GUIs using this article.
Here is a screenshot of where it is
This is my script.
local frame = script.Parent.Parent.Frame
script.Parent.MouseButton1Click:Connect(function()
frame.AnchorPoint = Vector2.new(0.5, 0.5) --change these both on the item
frame.Position = UDim2.new(-0.4, 0,0.5, 0)
wait(2)
frame:TweenPosition(UDim2.new(0.308, 0,0.185, 0)) --desired end location
end)
Any help is appreciated.