snobW0lf
(Snoww)
#23
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)
Doqee
(Doqee)
#24
Remove the { } brackets for the position, only keep the numbers.
snobW0lf
(Snoww)
#25
I have this and it doesn’t seem to work 
Doqee
(Doqee)
#26
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)
snobW0lf
(Snoww)
#27
Thank you for your help, but is there any way for the GUI to return back to its old position when your mouse leaves?
Doqee
(Doqee)
#28
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
snobW0lf
(Snoww)
#29
Thank you for your help! I gladly appreciate it.
Doqee
(Doqee)
#30
It’s alright! Have fun scripting, I’d recommend you using the resources that I commented straight above to help you understand the functions.
Sailor_Bea
(Sailor_Bea)
Split this topic
#31