So I'm making a game right and I have a menu where the player can pick their classes you know the typical RPG game but the problem is the script works right but the frame that I want to animate doesn't work but there are no errors at all. Here is the script. I was going to share a pic of Roblox studio but I don't know how to upload photos to this website. I thank anyone who is willing to help me. So I checked the frame and the script works the frame moves when I press the button but it doesn't update the original frame just stays there.
local textButton = script.Parent
textButton.MouseButton1Click:Connect(function()
local frame = script.Parent.Parent.Parent.Parent.ClassPickerGui.ClassPick
frame:TweenPosition(UDim2.new(0.879,0,0,0))
frame.Visible = true
end)

2 comments
Please explain what are you trying to do, I didn't understand.
sorry the code i inputted is a little buggy in this website, it doesn't get all inside the form