Help with gui button moving

so the script should look like this?

local ts = game:GetService("TweenService")
local button = script.Parent
local move = ts:Create(button, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 0, false, 0), {UDim2.new({0.207, 0},{0.499, 0})})
button.MouseEnter:Connect(function()
    move:Play()
end)

Remove the { } brackets for the position, only keep the numbers.

I have this and it doesn’t seem to work image

Oh, I forgot to include Positon inside the { } brackets. The finishing code would be:

local ts = game:GetService("TweenService")
local button = script.Parent
local move = ts:Create(button, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 0, false, 0), {Position = UDim2.new(0.207, 0,0.499, 0)})
button.MouseEnter:Connect(function()
    move:Play()
end)

Thank you for your help, but is there any way for the GUI to return back to its old position when your mouse leaves?

local moveBack = ts:Create(button, TweenInfo.new(1, Enum.EasingStyle.Quart, Enum.EasingDirection.InOut, 0, false, 0), {Position = UDim2.new(POSITION_HERE)})
button.MouseLeave:Connect(function()
    moveBack:Play()
end)
-- under the code

Thank you for your help! I gladly appreciate it.

It’s alright! Have fun scripting, I’d recommend you using the resources that I commented straight above to help you understand the functions.

A post was merged into an existing topic: Feedback - Bypassing the 30 Character Limit