:TweenPosition doesn't work on Frames [FIXED]

I see many problems with the code you provided. Firstly, you shouldn’t be using game.Workspace at all, because the workspace doesn’t contain the StarterGUI.

What you should do is reference each GuiObject from the script:

local Frame = script.Parent.Parent.Parent.hmm.TextButton

Frame.MouseButton1Click:Connect(function()
    Frame:TweenPosition = {UDim2.new(0.475, 0, 0.411, 0)}
end)
2 Likes