Please help me i'm confused about this Tween Gui

I am confused by this script.? I have checked to Output but nothing is wrong so I am asking for your help, Please help.

image

https://gyazo.com/a1e9df8f882cde084b7cd7687f7d0218https://gyazo.com/a1e9df8f882cde084b7cd7687f7d0218

local b = script.Parent.TextButton
local f = script.Parent.Frame
local cb = script.Parent.Frame.TextButton

b.MouseButton1Click:Connect(function()
	f:TweenPosition(UDim2.new(0.243, 0,0.108, 0),"Out","Quad")
end)

cb.MouseButton1Click:Connect(function()
	cb:TweenPosition(UDim2.new(-0.645, 0,0.15, 0),"In","Quad",0.5)
end)

It’s because you wrote

cb:TweenPosition(UDim2.new(-0.645, 0,0.15, 0),"In","Quad",0.5)

Instead of f, you used cb which caused this to happen. You can fix this just by changing this to f.

1 Like

robloxapp-20210528-2217180.wmv (185.0 KB)

Thank you very much for your help. :pray: :grinning: